﻿using System.Data.SqlClient;

namespace ECGadmin.Common
{    
			// "HNGIANG\\SQL2008","sa","123456"
			// "TUANANH","sa","123456"
		
    public class DTOParserAge : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdName;
		
		public int OrdOrdering;
		
		public int OrdDescription;
		
		public int OrdActive;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdOrdering = reader.GetOrdinal("Ordering");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			AgeDto age = new AgeDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { age.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { age.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdOrdering)) { age.Ordering = reader.GetInt32(OrdOrdering); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { age.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { age.Active = reader.GetString(OrdActive); }
	        			
			age.IsNew = false;
			
			return age;
		}
	}
	
		
    public class DTOParserAttribute : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdAttributeName;
		
		public int OrdCreateDate;
		
		public int OrdActive;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdAttributeName = reader.GetOrdinal("AttributeName");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			AttributeDto attribute = new AttributeDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { attribute.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdAttributeName)) { attribute.AttributeName = reader.GetString(OrdAttributeName); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { attribute.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { attribute.Active = reader.GetString(OrdActive); }
	        			
			attribute.IsNew = false;
			
			return attribute;
		}
	}
	
		
    public class DTOParserAttributeCategory : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdParentId;
		
		public int OrdCateAttributeName;
		
		public int OrdCreateDate;
		
		public int OrdActive;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdParentId = reader.GetOrdinal("ParentId");
	        	
	    	OrdCateAttributeName = reader.GetOrdinal("CateAttributeName");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			AttributeCategoryDto attributeCategory = new AttributeCategoryDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { attributeCategory.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdParentId)) { attributeCategory.ParentId = reader.GetInt32(OrdParentId); }
	        	
	    	if (!reader.IsDBNull(OrdCateAttributeName)) { attributeCategory.CateAttributeName = reader.GetString(OrdCateAttributeName); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { attributeCategory.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { attributeCategory.Active = reader.GetString(OrdActive); }
	        			
			attributeCategory.IsNew = false;
			
			return attributeCategory;
		}
	}
	
		
    public class DTOParserAttributeProduct : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdProductId;
		
		public int OrdCateAttributeId;
		
		public int OrdAttributeId;
		
		public int OrdActive;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdProductId = reader.GetOrdinal("ProductId");
	        	
	    	OrdCateAttributeId = reader.GetOrdinal("CateAttributeId");
	        	
	    	OrdAttributeId = reader.GetOrdinal("AttributeId");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			AttributeProductDto attributeProduct = new AttributeProductDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { attributeProduct.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdProductId)) { attributeProduct.ProductId = reader.GetInt32(OrdProductId); }
	        	
	    	if (!reader.IsDBNull(OrdCateAttributeId)) { attributeProduct.CateAttributeId = reader.GetInt32(OrdCateAttributeId); }
	        	
	    	if (!reader.IsDBNull(OrdAttributeId)) { attributeProduct.AttributeId = reader.GetInt32(OrdAttributeId); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { attributeProduct.Active = reader.GetString(OrdActive); }
	        			
			attributeProduct.IsNew = false;
			
			return attributeProduct;
		}
	}
	
		
    public class DTOParserBanner : DTOParser
    {			
		
		public int OrdBannerId;
		
		public int OrdSubject;
		
		public int OrdCreateDate;
		
		public int OrdStartDate;
		
		public int OrdExpireDate;
		
		public int OrdActive;
		
		public int OrdUpdateDate;
		
		public int OrdPageId;
		
		public int OrdPositionId;
		
		public int OrdCategoryId;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdBannerId = reader.GetOrdinal("BannerId");
	        	
	    	OrdSubject = reader.GetOrdinal("Subject");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdStartDate = reader.GetOrdinal("StartDate");
	        	
	    	OrdExpireDate = reader.GetOrdinal("ExpireDate");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        	
	    	OrdUpdateDate = reader.GetOrdinal("UpdateDate");
	        	
	    	OrdPageId = reader.GetOrdinal("PageId");
	        	
	    	OrdPositionId = reader.GetOrdinal("PositionId");
	        	
	    	OrdCategoryId = reader.GetOrdinal("CategoryId");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			BannerDto banner = new BannerDto();
			
				
	    	if (!reader.IsDBNull(OrdBannerId)) { banner.BannerId = reader.GetString(OrdBannerId); }
	        	
	    	if (!reader.IsDBNull(OrdSubject)) { banner.Subject = reader.GetString(OrdSubject); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { banner.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdStartDate)) { banner.StartDate = reader.GetDateTime(OrdStartDate); }
	        	
	    	if (!reader.IsDBNull(OrdExpireDate)) { banner.ExpireDate = reader.GetDateTime(OrdExpireDate); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { banner.Active = reader.GetBoolean(OrdActive); }
	        	
	    	if (!reader.IsDBNull(OrdUpdateDate)) { banner.UpdateDate = reader.GetDateTime(OrdUpdateDate); }
	        	
	    	if (!reader.IsDBNull(OrdPageId)) { banner.PageId = reader.GetInt32(OrdPageId); }
	        	
	    	if (!reader.IsDBNull(OrdPositionId)) { banner.PositionId = reader.GetInt32(OrdPositionId); }
	        	
	    	if (!reader.IsDBNull(OrdCategoryId)) { banner.CategoryId = reader.GetString(OrdCategoryId); }
	        			
			banner.IsNew = false;
			
			return banner;
		}
	}
	
		
    public class DTOParserBannerImage : DTOParser
    {			
		
		public int OrdBannerImageId;
		
		public int OrdBannerId;
		
		public int OrdTitle;
		
		public int OrdUrl;
		
		public int OrdUrlStatistic;
		
		public int OrdWidth;
		
		public int OrdHeight;
		
		public int OrdImagePath;
		
		public int OrdDescription;
		
		public int OrdOrder;
		
		public int OrdShow;
		
		public int OrdNoFollow;
		
		public int OrdCreateDate;
		
		public int OrdUpdateDate;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdBannerImageId = reader.GetOrdinal("BannerImageId");
	        	
	    	OrdBannerId = reader.GetOrdinal("BannerId");
	        	
	    	OrdTitle = reader.GetOrdinal("Title");
	        	
	    	OrdUrl = reader.GetOrdinal("Url");
	        	
	    	OrdUrlStatistic = reader.GetOrdinal("UrlStatistic");
	        	
	    	OrdWidth = reader.GetOrdinal("Width");
	        	
	    	OrdHeight = reader.GetOrdinal("Height");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdOrder = reader.GetOrdinal("Order");
	        	
	    	OrdShow = reader.GetOrdinal("Show");
	        	
	    	OrdNoFollow = reader.GetOrdinal("NoFollow");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdUpdateDate = reader.GetOrdinal("UpdateDate");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			BannerImageDto bannerImage = new BannerImageDto();
			
				
	    	if (!reader.IsDBNull(OrdBannerImageId)) { bannerImage.BannerImageId = reader.GetString(OrdBannerImageId); }
	        	
	    	if (!reader.IsDBNull(OrdBannerId)) { bannerImage.BannerId = reader.GetString(OrdBannerId); }
	        	
	    	if (!reader.IsDBNull(OrdTitle)) { bannerImage.Title = reader.GetString(OrdTitle); }
	        	
	    	if (!reader.IsDBNull(OrdUrl)) { bannerImage.Url = reader.GetString(OrdUrl); }
	        	
	    	if (!reader.IsDBNull(OrdUrlStatistic)) { bannerImage.UrlStatistic = reader.GetString(OrdUrlStatistic); }
	        	
	    	if (!reader.IsDBNull(OrdWidth)) { bannerImage.Width = reader.GetInt32(OrdWidth); }
	        	
	    	if (!reader.IsDBNull(OrdHeight)) { bannerImage.Height = reader.GetInt32(OrdHeight); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { bannerImage.ImagePath = reader.GetString(OrdImagePath); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { bannerImage.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdOrder)) { bannerImage.Order = reader.GetInt32(OrdOrder); }
	        	
	    	if (!reader.IsDBNull(OrdShow)) { bannerImage.Show = reader.GetBoolean(OrdShow); }
	        	
	    	if (!reader.IsDBNull(OrdNoFollow)) { bannerImage.NoFollow = reader.GetBoolean(OrdNoFollow); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { bannerImage.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdUpdateDate)) { bannerImage.UpdateDate = reader.GetDateTime(OrdUpdateDate); }
	        			
			bannerImage.IsNew = false;
			
			return bannerImage;
		}
	}
	
		
    public class DTOParserCampaign : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdName;
		
		public int OrdSubject;
		
		public int OrdBody;
		
		public int OrdCreatedDate;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdSubject = reader.GetOrdinal("Subject");
	        	
	    	OrdBody = reader.GetOrdinal("Body");
	        	
	    	OrdCreatedDate = reader.GetOrdinal("CreatedDate");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			CampaignDto campaign = new CampaignDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { campaign.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { campaign.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdSubject)) { campaign.Subject = reader.GetString(OrdSubject); }
	        	
	    	if (!reader.IsDBNull(OrdBody)) { campaign.Body = reader.GetString(OrdBody); }
	        	
	    	if (!reader.IsDBNull(OrdCreatedDate)) { campaign.CreatedDate = reader.GetDateTime(OrdCreatedDate); }
	        			
			campaign.IsNew = false;
			
			return campaign;
		}
	}
	
		
    public class DTOParserCampaignCustomer : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdName;
		
		public int OrdEmail;
		
		public int OrdMobilePhone;
		
		public int OrdAddress;
		
		public int OrdMaXoSo;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdEmail = reader.GetOrdinal("Email");
	        	
	    	OrdMobilePhone = reader.GetOrdinal("MobilePhone");
	        	
	    	OrdAddress = reader.GetOrdinal("Address");
	        	
	    	OrdMaXoSo = reader.GetOrdinal("MaXoSo");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			CampaignCustomerDto campaignCustomer = new CampaignCustomerDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { campaignCustomer.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { campaignCustomer.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdEmail)) { campaignCustomer.Email = reader.GetString(OrdEmail); }
	        	
	    	if (!reader.IsDBNull(OrdMobilePhone)) { campaignCustomer.MobilePhone = reader.GetString(OrdMobilePhone); }
	        	
	    	if (!reader.IsDBNull(OrdAddress)) { campaignCustomer.Address = reader.GetString(OrdAddress); }
	        	
	    	if (!reader.IsDBNull(OrdMaXoSo)) { campaignCustomer.MaXoSo = reader.GetString(OrdMaXoSo); }
	        			
			campaignCustomer.IsNew = false;
			
			return campaignCustomer;
		}
	}
	
		
    public class DTOParserColor : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdName;
		
		public int OrdCode;
		
		public int OrdCreateDate;
		
		public int OrdActive;
		
		public int OrdModifyDate;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdCode = reader.GetOrdinal("Code");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        	
	    	OrdModifyDate = reader.GetOrdinal("ModifyDate");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ColorDto color = new ColorDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { color.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { color.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdCode)) { color.Code = reader.GetString(OrdCode); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { color.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { color.Active = reader.GetBoolean(OrdActive); }
	        	
	    	if (!reader.IsDBNull(OrdModifyDate)) { color.ModifyDate = reader.GetDateTime(OrdModifyDate); }
	        			
			color.IsNew = false;
			
			return color;
		}
	}
	
		
    public class DTOParserConfig : DTOParser
    {			
		
		public int OrdConfigId;
		
		public int OrdKey;
		
		public int OrdValue;
		
		public int OrdDescription;
		
		public int OrdType;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdConfigId = reader.GetOrdinal("ConfigId");
	        	
	    	OrdKey = reader.GetOrdinal("Key");
	        	
	    	OrdValue = reader.GetOrdinal("Value");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdType = reader.GetOrdinal("Type");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ConfigDto config = new ConfigDto();
			
				
	    	if (!reader.IsDBNull(OrdConfigId)) { config.ConfigId = reader.GetInt32(OrdConfigId); }
	        	
	    	if (!reader.IsDBNull(OrdKey)) { config.Key = reader.GetString(OrdKey); }
	        	
	    	if (!reader.IsDBNull(OrdValue)) { config.Value = reader.GetString(OrdValue); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { config.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdType)) { config.Type = reader.GetString(OrdType); }
	        			
			config.IsNew = false;
			
			return config;
		}
	}
	
		
    public class DTOParserContact : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdContactName;
		
		public int OrdAddress;
		
		public int OrdMobile;
		
		public int OrdEmail;
		
		public int OrdSubject;
		
		public int OrdContent;
		
		public int OrdCreateDate;
		
		public int OrdActive;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdContactName = reader.GetOrdinal("ContactName");
	        	
	    	OrdAddress = reader.GetOrdinal("Address");
	        	
	    	OrdMobile = reader.GetOrdinal("Mobile");
	        	
	    	OrdEmail = reader.GetOrdinal("Email");
	        	
	    	OrdSubject = reader.GetOrdinal("Subject");
	        	
	    	OrdContent = reader.GetOrdinal("Content");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ContactDto contact = new ContactDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { contact.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdContactName)) { contact.ContactName = reader.GetString(OrdContactName); }
	        	
	    	if (!reader.IsDBNull(OrdAddress)) { contact.Address = reader.GetString(OrdAddress); }
	        	
	    	if (!reader.IsDBNull(OrdMobile)) { contact.Mobile = reader.GetString(OrdMobile); }
	        	
	    	if (!reader.IsDBNull(OrdEmail)) { contact.Email = reader.GetString(OrdEmail); }
	        	
	    	if (!reader.IsDBNull(OrdSubject)) { contact.Subject = reader.GetString(OrdSubject); }
	        	
	    	if (!reader.IsDBNull(OrdContent)) { contact.Content = reader.GetString(OrdContent); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { contact.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { contact.Active = reader.GetString(OrdActive); }
	        			
			contact.IsNew = false;
			
			return contact;
		}
	}
	
		
    public class DTOParserCountry : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdParentId;
		
		public int OrdCountryName;
		
		public int OrdActive;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdParentId = reader.GetOrdinal("ParentId");
	        	
	    	OrdCountryName = reader.GetOrdinal("CountryName");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			CountryDto country = new CountryDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { country.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdParentId)) { country.ParentId = reader.GetInt32(OrdParentId); }
	        	
	    	if (!reader.IsDBNull(OrdCountryName)) { country.CountryName = reader.GetString(OrdCountryName); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { country.Active = reader.GetString(OrdActive); }
	        			
			country.IsNew = false;
			
			return country;
		}
	}
	
		
    public class DTOParserCustomer : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdPassword;
		
		public int OrdPasswordSalt;
		
		public int OrdFullName;
		
		public int OrdEmail;
		
		public int OrdBirthday;
		
		public int OrdGender;
		
		public int OrdAddress;
		
		public int OrdTelephone;
		
		public int OrdMobilephone;
		
		public int OrdFax;
		
		public int OrdCompanyName;
		
		public int OrdCompanyAddress;
		
		public int OrdCompanyPhone;
		
		public int OrdProvinceId;
		
		public int OrdProvinceName;
		
		public int OrdDistrictId;
		
		public int OrdDistrictName;
		
		public int OrdCountryId;
		
		public int OrdActivateCode;
		
		public int OrdAvatarPath;
		
		public int OrdActive;
		
		public int OrdEmailStatus;
		
		public int OrdCreateDate;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdPassword = reader.GetOrdinal("Password");
	        	
	    	OrdPasswordSalt = reader.GetOrdinal("PasswordSalt");
	        	
	    	OrdFullName = reader.GetOrdinal("FullName");
	        	
	    	OrdEmail = reader.GetOrdinal("Email");
	        	
	    	OrdBirthday = reader.GetOrdinal("Birthday");
	        	
	    	OrdGender = reader.GetOrdinal("Gender");
	        	
	    	OrdAddress = reader.GetOrdinal("Address");
	        	
	    	OrdTelephone = reader.GetOrdinal("Telephone");
	        	
	    	OrdMobilephone = reader.GetOrdinal("Mobilephone");
	        	
	    	OrdFax = reader.GetOrdinal("Fax");
	        	
	    	OrdCompanyName = reader.GetOrdinal("CompanyName");
	        	
	    	OrdCompanyAddress = reader.GetOrdinal("CompanyAddress");
	        	
	    	OrdCompanyPhone = reader.GetOrdinal("CompanyPhone");
	        	
	    	OrdProvinceId = reader.GetOrdinal("ProvinceId");
	        	
	    	OrdProvinceName = reader.GetOrdinal("ProvinceName");
	        	
	    	OrdDistrictId = reader.GetOrdinal("DistrictId");
	        	
	    	OrdDistrictName = reader.GetOrdinal("DistrictName");
	        	
	    	OrdCountryId = reader.GetOrdinal("CountryId");
	        	
	    	OrdActivateCode = reader.GetOrdinal("ActivateCode");
	        	
	    	OrdAvatarPath = reader.GetOrdinal("AvatarPath");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        	
	    	OrdEmailStatus = reader.GetOrdinal("EmailStatus");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			CustomerDto customer = new CustomerDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { customer.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdPassword)) { customer.Password = reader.GetString(OrdPassword); }
	        	
	    	if (!reader.IsDBNull(OrdPasswordSalt)) { customer.PasswordSalt = reader.GetString(OrdPasswordSalt); }
	        	
	    	if (!reader.IsDBNull(OrdFullName)) { customer.FullName = reader.GetString(OrdFullName); }
	        	
	    	if (!reader.IsDBNull(OrdEmail)) { customer.Email = reader.GetString(OrdEmail); }
	        	
	    	if (!reader.IsDBNull(OrdBirthday)) { customer.Birthday = reader.GetDateTime(OrdBirthday); }
	        	
	    	if (!reader.IsDBNull(OrdGender)) { customer.Gender = reader.GetString(OrdGender); }
	        	
	    	if (!reader.IsDBNull(OrdAddress)) { customer.Address = reader.GetString(OrdAddress); }
	        	
	    	if (!reader.IsDBNull(OrdTelephone)) { customer.Telephone = reader.GetString(OrdTelephone); }
	        	
	    	if (!reader.IsDBNull(OrdMobilephone)) { customer.Mobilephone = reader.GetString(OrdMobilephone); }
	        	
	    	if (!reader.IsDBNull(OrdFax)) { customer.Fax = reader.GetString(OrdFax); }
	        	
	    	if (!reader.IsDBNull(OrdCompanyName)) { customer.CompanyName = reader.GetString(OrdCompanyName); }
	        	
	    	if (!reader.IsDBNull(OrdCompanyAddress)) { customer.CompanyAddress = reader.GetString(OrdCompanyAddress); }
	        	
	    	if (!reader.IsDBNull(OrdCompanyPhone)) { customer.CompanyPhone = reader.GetString(OrdCompanyPhone); }
	        	
	    	if (!reader.IsDBNull(OrdProvinceId)) { customer.ProvinceId = reader.GetInt32(OrdProvinceId); }
	        	
	    	if (!reader.IsDBNull(OrdProvinceName)) { customer.ProvinceName = reader.GetString(OrdProvinceName); }
	        	
	    	if (!reader.IsDBNull(OrdDistrictId)) { customer.DistrictId = reader.GetInt32(OrdDistrictId); }
	        	
	    	if (!reader.IsDBNull(OrdDistrictName)) { customer.DistrictName = reader.GetString(OrdDistrictName); }
	        	
	    	if (!reader.IsDBNull(OrdCountryId)) { customer.CountryId = reader.GetInt32(OrdCountryId); }
	        	
	    	if (!reader.IsDBNull(OrdActivateCode)) { customer.ActivateCode = reader.GetString(OrdActivateCode); }
	        	
	    	if (!reader.IsDBNull(OrdAvatarPath)) { customer.AvatarPath = reader.GetString(OrdAvatarPath); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { customer.Active = reader.GetString(OrdActive); }
	        	
	    	if (!reader.IsDBNull(OrdEmailStatus)) { customer.EmailStatus = reader.GetBoolean(OrdEmailStatus); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { customer.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        			
			customer.IsNew = false;
			
			return customer;
		}
	}
	
		
    public class DTOParserDiscount : DTOParser
    {			
		
		public int OrdDiscountId;
		
		public int OrdName;
		
		public int OrdDiscountTypeId;
		
		public int OrdUsePercentage;
		
		public int OrdDiscountPercentage;
		
		public int OrdDiscountAmount;
		
		public int OrdStartDate;
		
		public int OrdEndDate;
		
		public int OrdRequiresCouponCode;
		
		public int OrdCouponCode;
		
		public int OrdDescription;
		
		public int OrdDiscountLimitationId;
		
		public int OrdLimitationTimes;
		
		public int OrdCreatedDate;
		
		public int OrdUpdatedDate;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdDiscountId = reader.GetOrdinal("DiscountId");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdDiscountTypeId = reader.GetOrdinal("DiscountTypeId");
	        	
	    	OrdUsePercentage = reader.GetOrdinal("UsePercentage");
	        	
	    	OrdDiscountPercentage = reader.GetOrdinal("DiscountPercentage");
	        	
	    	OrdDiscountAmount = reader.GetOrdinal("DiscountAmount");
	        	
	    	OrdStartDate = reader.GetOrdinal("StartDate");
	        	
	    	OrdEndDate = reader.GetOrdinal("EndDate");
	        	
	    	OrdRequiresCouponCode = reader.GetOrdinal("RequiresCouponCode");
	        	
	    	OrdCouponCode = reader.GetOrdinal("CouponCode");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdDiscountLimitationId = reader.GetOrdinal("DiscountLimitationId");
	        	
	    	OrdLimitationTimes = reader.GetOrdinal("LimitationTimes");
	        	
	    	OrdCreatedDate = reader.GetOrdinal("CreatedDate");
	        	
	    	OrdUpdatedDate = reader.GetOrdinal("UpdatedDate");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			DiscountDto discount = new DiscountDto();
			
				
	    	if (!reader.IsDBNull(OrdDiscountId)) { discount.DiscountId = reader.GetInt32(OrdDiscountId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { discount.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountTypeId)) { discount.DiscountTypeId = reader.GetInt32(OrdDiscountTypeId); }
	        	
	    	if (!reader.IsDBNull(OrdUsePercentage)) { discount.UsePercentage = reader.GetBoolean(OrdUsePercentage); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountPercentage)) { discount.DiscountPercentage = reader.GetDecimal(OrdDiscountPercentage); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountAmount)) { discount.DiscountAmount = reader.GetDecimal(OrdDiscountAmount); }
	        	
	    	if (!reader.IsDBNull(OrdStartDate)) { discount.StartDate = reader.GetDateTime(OrdStartDate); }
	        	
	    	if (!reader.IsDBNull(OrdEndDate)) { discount.EndDate = reader.GetDateTime(OrdEndDate); }
	        	
	    	if (!reader.IsDBNull(OrdRequiresCouponCode)) { discount.RequiresCouponCode = reader.GetBoolean(OrdRequiresCouponCode); }
	        	
	    	if (!reader.IsDBNull(OrdCouponCode)) { discount.CouponCode = reader.GetString(OrdCouponCode); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { discount.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountLimitationId)) { discount.DiscountLimitationId = reader.GetInt32(OrdDiscountLimitationId); }
	        	
	    	if (!reader.IsDBNull(OrdLimitationTimes)) { discount.LimitationTimes = reader.GetInt32(OrdLimitationTimes); }
	        	
	    	if (!reader.IsDBNull(OrdCreatedDate)) { discount.CreatedDate = reader.GetDateTime(OrdCreatedDate); }
	        	
	    	if (!reader.IsDBNull(OrdUpdatedDate)) { discount.UpdatedDate = reader.GetDateTime(OrdUpdatedDate); }
	        			
			discount.IsNew = false;
			
			return discount;
		}
	}
	
		
    public class DTOParserDiscountApplyToCategory : DTOParser
    {			
		
		public int OrdDiscountId;
		
		public int OrdCategoryId;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdDiscountId = reader.GetOrdinal("DiscountId");
	        	
	    	OrdCategoryId = reader.GetOrdinal("CategoryId");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			DiscountApplyToCategoryDto discountApplyToCategory = new DiscountApplyToCategoryDto();
			
				
	    	if (!reader.IsDBNull(OrdDiscountId)) { discountApplyToCategory.DiscountId = reader.GetInt32(OrdDiscountId); }
	        	
	    	if (!reader.IsDBNull(OrdCategoryId)) { discountApplyToCategory.CategoryId = reader.GetString(OrdCategoryId); }
	        			
			discountApplyToCategory.IsNew = false;
			
			return discountApplyToCategory;
		}
	}
	
		
    public class DTOParserDiscountApplyToProduct : DTOParser
    {			
		
		public int OrdDiscountId;
		
		public int OrdProductId;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdDiscountId = reader.GetOrdinal("DiscountId");
	        	
	    	OrdProductId = reader.GetOrdinal("ProductId");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			DiscountApplyToProductDto discountApplyToProduct = new DiscountApplyToProductDto();
			
				
	    	if (!reader.IsDBNull(OrdDiscountId)) { discountApplyToProduct.DiscountId = reader.GetInt32(OrdDiscountId); }
	        	
	    	if (!reader.IsDBNull(OrdProductId)) { discountApplyToProduct.ProductId = reader.GetString(OrdProductId); }
	        			
			discountApplyToProduct.IsNew = false;
			
			return discountApplyToProduct;
		}
	}
	
		
    public class DTOParserDiscountLimitation : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdName;
		
		public int OrdCreatedDate;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdCreatedDate = reader.GetOrdinal("CreatedDate");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			DiscountLimitationDto discountLimitation = new DiscountLimitationDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { discountLimitation.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { discountLimitation.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdCreatedDate)) { discountLimitation.CreatedDate = reader.GetDateTime(OrdCreatedDate); }
	        			
			discountLimitation.IsNew = false;
			
			return discountLimitation;
		}
	}
	
		
    public class DTOParserDiscountRequirement : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdDiscountId;
		
		public int OrdDiscountRequirementRuleSystemName;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdDiscountId = reader.GetOrdinal("DiscountId");
	        	
	    	OrdDiscountRequirementRuleSystemName = reader.GetOrdinal("DiscountRequirementRuleSystemName");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			DiscountRequirementDto discountRequirement = new DiscountRequirementDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { discountRequirement.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountId)) { discountRequirement.DiscountId = reader.GetInt32(OrdDiscountId); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountRequirementRuleSystemName)) { discountRequirement.DiscountRequirementRuleSystemName = reader.GetString(OrdDiscountRequirementRuleSystemName); }
	        			
			discountRequirement.IsNew = false;
			
			return discountRequirement;
		}
	}
	
		
    public class DTOParserDiscountRequirementType : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdName;
		
		public int OrdCreatedDate;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdCreatedDate = reader.GetOrdinal("CreatedDate");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			DiscountRequirementTypeDto discountRequirementType = new DiscountRequirementTypeDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { discountRequirementType.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { discountRequirementType.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdCreatedDate)) { discountRequirementType.CreatedDate = reader.GetDateTime(OrdCreatedDate); }
	        			
			discountRequirementType.IsNew = false;
			
			return discountRequirementType;
		}
	}
	
		
    public class DTOParserDiscountType : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdName;
		
		public int OrdCreatedDate;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdCreatedDate = reader.GetOrdinal("CreatedDate");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			DiscountTypeDto discountType = new DiscountTypeDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { discountType.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { discountType.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdCreatedDate)) { discountType.CreatedDate = reader.GetDateTime(OrdCreatedDate); }
	        			
			discountType.IsNew = false;
			
			return discountType;
		}
	}
	
		
    public class DTOParserDiscountUsageHistory : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdDiscountId;
		
		public int OrdOrderId;
		
		public int OrdCreatedDate;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdDiscountId = reader.GetOrdinal("DiscountId");
	        	
	    	OrdOrderId = reader.GetOrdinal("OrderId");
	        	
	    	OrdCreatedDate = reader.GetOrdinal("CreatedDate");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			DiscountUsageHistoryDto discountUsageHistory = new DiscountUsageHistoryDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { discountUsageHistory.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountId)) { discountUsageHistory.DiscountId = reader.GetInt32(OrdDiscountId); }
	        	
	    	if (!reader.IsDBNull(OrdOrderId)) { discountUsageHistory.OrderId = reader.GetInt32(OrdOrderId); }
	        	
	    	if (!reader.IsDBNull(OrdCreatedDate)) { discountUsageHistory.CreatedDate = reader.GetDateTime(OrdCreatedDate); }
	        			
			discountUsageHistory.IsNew = false;
			
			return discountUsageHistory;
		}
	}
	
		
    public class DTOParserGift : DTOParser
    {			
		
		public int OrdGiftId;
		
		public int OrdName;
		
		public int OrdGiftTypeId;
		
		public int OrdRequiresCouponCode;
		
		public int OrdCouponCode;
		
		public int OrdDescription;
		
		public int OrdGiftLimitationId;
		
		public int OrdLimitationTimes;
		
		public int OrdStartDate;
		
		public int OrdEndDate;
		
		public int OrdCreatedDate;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdGiftId = reader.GetOrdinal("GiftId");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdGiftTypeId = reader.GetOrdinal("GiftTypeId");
	        	
	    	OrdRequiresCouponCode = reader.GetOrdinal("RequiresCouponCode");
	        	
	    	OrdCouponCode = reader.GetOrdinal("CouponCode");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdGiftLimitationId = reader.GetOrdinal("GiftLimitationId");
	        	
	    	OrdLimitationTimes = reader.GetOrdinal("LimitationTimes");
	        	
	    	OrdStartDate = reader.GetOrdinal("StartDate");
	        	
	    	OrdEndDate = reader.GetOrdinal("EndDate");
	        	
	    	OrdCreatedDate = reader.GetOrdinal("CreatedDate");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			GiftDto gift = new GiftDto();
			
				
	    	if (!reader.IsDBNull(OrdGiftId)) { gift.GiftId = reader.GetInt32(OrdGiftId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { gift.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdGiftTypeId)) { gift.GiftTypeId = reader.GetInt32(OrdGiftTypeId); }
	        	
	    	if (!reader.IsDBNull(OrdRequiresCouponCode)) { gift.RequiresCouponCode = reader.GetBoolean(OrdRequiresCouponCode); }
	        	
	    	if (!reader.IsDBNull(OrdCouponCode)) { gift.CouponCode = reader.GetString(OrdCouponCode); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { gift.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdGiftLimitationId)) { gift.GiftLimitationId = reader.GetInt32(OrdGiftLimitationId); }
	        	
	    	if (!reader.IsDBNull(OrdLimitationTimes)) { gift.LimitationTimes = reader.GetInt32(OrdLimitationTimes); }
	        	
	    	if (!reader.IsDBNull(OrdStartDate)) { gift.StartDate = reader.GetDateTime(OrdStartDate); }
	        	
	    	if (!reader.IsDBNull(OrdEndDate)) { gift.EndDate = reader.GetDateTime(OrdEndDate); }
	        	
	    	if (!reader.IsDBNull(OrdCreatedDate)) { gift.CreatedDate = reader.GetDateTime(OrdCreatedDate); }
	        			
			gift.IsNew = false;
			
			return gift;
		}
	}
	
		
    public class DTOParserGiftApplyToCategory : DTOParser
    {			
		
		public int OrdGiftId;
		
		public int OrdCategoryId;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdGiftId = reader.GetOrdinal("GiftId");
	        	
	    	OrdCategoryId = reader.GetOrdinal("CategoryId");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			GiftApplyToCategoryDto giftApplyToCategory = new GiftApplyToCategoryDto();
			
				
	    	if (!reader.IsDBNull(OrdGiftId)) { giftApplyToCategory.GiftId = reader.GetInt32(OrdGiftId); }
	        	
	    	if (!reader.IsDBNull(OrdCategoryId)) { giftApplyToCategory.CategoryId = reader.GetString(OrdCategoryId); }
	        			
			giftApplyToCategory.IsNew = false;
			
			return giftApplyToCategory;
		}
	}
	
		
    public class DTOParserGiftApplyToProduct : DTOParser
    {			
		
		public int OrdGiftId;
		
		public int OrdProductId;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdGiftId = reader.GetOrdinal("GiftId");
	        	
	    	OrdProductId = reader.GetOrdinal("ProductId");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			GiftApplyToProductDto giftApplyToProduct = new GiftApplyToProductDto();
			
				
	    	if (!reader.IsDBNull(OrdGiftId)) { giftApplyToProduct.GiftId = reader.GetInt32(OrdGiftId); }
	        	
	    	if (!reader.IsDBNull(OrdProductId)) { giftApplyToProduct.ProductId = reader.GetString(OrdProductId); }
	        			
			giftApplyToProduct.IsNew = false;
			
			return giftApplyToProduct;
		}
	}
	
		
    public class DTOParserGiftLimitation : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdName;
		
		public int OrdCreatedDate;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdCreatedDate = reader.GetOrdinal("CreatedDate");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			GiftLimitationDto giftLimitation = new GiftLimitationDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { giftLimitation.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { giftLimitation.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdCreatedDate)) { giftLimitation.CreatedDate = reader.GetDateTime(OrdCreatedDate); }
	        			
			giftLimitation.IsNew = false;
			
			return giftLimitation;
		}
	}
	
		
    public class DTOParserGiftProduct : DTOParser
    {			
		
		public int OrdGiftId;
		
		public int OrdProductId;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdGiftId = reader.GetOrdinal("GiftId");
	        	
	    	OrdProductId = reader.GetOrdinal("ProductId");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			GiftProductDto giftProduct = new GiftProductDto();
			
				
	    	if (!reader.IsDBNull(OrdGiftId)) { giftProduct.GiftId = reader.GetInt32(OrdGiftId); }
	        	
	    	if (!reader.IsDBNull(OrdProductId)) { giftProduct.ProductId = reader.GetString(OrdProductId); }
	        			
			giftProduct.IsNew = false;
			
			return giftProduct;
		}
	}
	
		
    public class DTOParserGiftRequirement : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdGiftId;
		
		public int OrdGiftRequirementRuleSystemName;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdGiftId = reader.GetOrdinal("GiftId");
	        	
	    	OrdGiftRequirementRuleSystemName = reader.GetOrdinal("GiftRequirementRuleSystemName");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			GiftRequirementDto giftRequirement = new GiftRequirementDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { giftRequirement.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdGiftId)) { giftRequirement.GiftId = reader.GetInt32(OrdGiftId); }
	        	
	    	if (!reader.IsDBNull(OrdGiftRequirementRuleSystemName)) { giftRequirement.GiftRequirementRuleSystemName = reader.GetString(OrdGiftRequirementRuleSystemName); }
	        			
			giftRequirement.IsNew = false;
			
			return giftRequirement;
		}
	}
	
		
    public class DTOParserGiftRequirementType : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdName;
		
		public int OrdCreatedDate;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdCreatedDate = reader.GetOrdinal("CreatedDate");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			GiftRequirementTypeDto giftRequirementType = new GiftRequirementTypeDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { giftRequirementType.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { giftRequirementType.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdCreatedDate)) { giftRequirementType.CreatedDate = reader.GetDateTime(OrdCreatedDate); }
	        			
			giftRequirementType.IsNew = false;
			
			return giftRequirementType;
		}
	}
	
		
    public class DTOParserGiftType : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdName;
		
		public int OrdCreatedDate;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdCreatedDate = reader.GetOrdinal("CreatedDate");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			GiftTypeDto giftType = new GiftTypeDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { giftType.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { giftType.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdCreatedDate)) { giftType.CreatedDate = reader.GetDateTime(OrdCreatedDate); }
	        			
			giftType.IsNew = false;
			
			return giftType;
		}
	}
	
		
    public class DTOParserGiftUsageHistory : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdGiftId;
		
		public int OrdOrderId;
		
		public int OrdCreateDate;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdGiftId = reader.GetOrdinal("GiftId");
	        	
	    	OrdOrderId = reader.GetOrdinal("OrderId");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			GiftUsageHistoryDto giftUsageHistory = new GiftUsageHistoryDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { giftUsageHistory.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdGiftId)) { giftUsageHistory.GiftId = reader.GetInt32(OrdGiftId); }
	        	
	    	if (!reader.IsDBNull(OrdOrderId)) { giftUsageHistory.OrderId = reader.GetInt32(OrdOrderId); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { giftUsageHistory.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        			
			giftUsageHistory.IsNew = false;
			
			return giftUsageHistory;
		}
	}
	
		
    public class DTOParserGoldenTimeCampain : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdCampainName;
		
		public int OrdFromHour;
		
		public int OrdToHour;
		
		public int OrdDateBegin;
		
		public int OrdDateEnd;
		
		public int OrdCountProduct;
		
		public int OrdCountDate;
		
		public int OrdCountOrder;
		
		public int OrdTotalPrice;
		
		public int OrdCusWin;
		
		public int OrdRandom;
		
		public int OrdStatus;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdCampainName = reader.GetOrdinal("CampainName");
	        	
	    	OrdFromHour = reader.GetOrdinal("FromHour");
	        	
	    	OrdToHour = reader.GetOrdinal("ToHour");
	        	
	    	OrdDateBegin = reader.GetOrdinal("DateBegin");
	        	
	    	OrdDateEnd = reader.GetOrdinal("DateEnd");
	        	
	    	OrdCountProduct = reader.GetOrdinal("CountProduct");
	        	
	    	OrdCountDate = reader.GetOrdinal("CountDate");
	        	
	    	OrdCountOrder = reader.GetOrdinal("CountOrder");
	        	
	    	OrdTotalPrice = reader.GetOrdinal("TotalPrice");
	        	
	    	OrdCusWin = reader.GetOrdinal("CusWin");
	        	
	    	OrdRandom = reader.GetOrdinal("Random");
	        	
	    	OrdStatus = reader.GetOrdinal("Status");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			GoldenTimeCampainDto goldenTimeCampain = new GoldenTimeCampainDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { goldenTimeCampain.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdCampainName)) { goldenTimeCampain.CampainName = reader.GetString(OrdCampainName); }
	        	
	    	if (!reader.IsDBNull(OrdFromHour)) { goldenTimeCampain.FromHour = reader.GetDateTime(OrdFromHour); }
	        	
	    	if (!reader.IsDBNull(OrdToHour)) { goldenTimeCampain.ToHour = reader.GetDateTime(OrdToHour); }
	        	
	    	if (!reader.IsDBNull(OrdDateBegin)) { goldenTimeCampain.DateBegin = reader.GetDateTime(OrdDateBegin); }
	        	
	    	if (!reader.IsDBNull(OrdDateEnd)) { goldenTimeCampain.DateEnd = reader.GetDateTime(OrdDateEnd); }
	        	
	    	if (!reader.IsDBNull(OrdCountProduct)) { goldenTimeCampain.CountProduct = reader.GetInt32(OrdCountProduct); }
	        	
	    	if (!reader.IsDBNull(OrdCountDate)) { goldenTimeCampain.CountDate = reader.GetInt32(OrdCountDate); }
	        	
	    	if (!reader.IsDBNull(OrdCountOrder)) { goldenTimeCampain.CountOrder = reader.GetInt32(OrdCountOrder); }
	        	
	    	if (!reader.IsDBNull(OrdTotalPrice)) { goldenTimeCampain.TotalPrice = reader.GetDecimal(OrdTotalPrice); }
	        	
	    	if (!reader.IsDBNull(OrdCusWin)) { goldenTimeCampain.CusWin = reader.GetString(OrdCusWin); }
	        	
	    	if (!reader.IsDBNull(OrdRandom)) { goldenTimeCampain.Random = reader.GetBoolean(OrdRandom); }
	        	
	    	if (!reader.IsDBNull(OrdStatus)) { goldenTimeCampain.Status = reader.GetString(OrdStatus); }
	        			
			goldenTimeCampain.IsNew = false;
			
			return goldenTimeCampain;
		}
	}
	
		
    public class DTOParserGoldenTimeCusBought : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdGoldenTimeProductId;
		
		public int OrdCustomerId;
		
		public int OrdCampainId;
		
		public int OrdTotalPrice;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdGoldenTimeProductId = reader.GetOrdinal("GoldenTimeProductId");
	        	
	    	OrdCustomerId = reader.GetOrdinal("CustomerId");
	        	
	    	OrdCampainId = reader.GetOrdinal("CampainId");
	        	
	    	OrdTotalPrice = reader.GetOrdinal("TotalPrice");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			GoldenTimeCusBoughtDto goldenTimeCusBought = new GoldenTimeCusBoughtDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { goldenTimeCusBought.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdGoldenTimeProductId)) { goldenTimeCusBought.GoldenTimeProductId = reader.GetString(OrdGoldenTimeProductId); }
	        	
	    	if (!reader.IsDBNull(OrdCustomerId)) { goldenTimeCusBought.CustomerId = reader.GetString(OrdCustomerId); }
	        	
	    	if (!reader.IsDBNull(OrdCampainId)) { goldenTimeCusBought.CampainId = reader.GetString(OrdCampainId); }
	        	
	    	if (!reader.IsDBNull(OrdTotalPrice)) { goldenTimeCusBought.TotalPrice = reader.GetDecimal(OrdTotalPrice); }
	        			
			goldenTimeCusBought.IsNew = false;
			
			return goldenTimeCusBought;
		}
	}
	
		
    public class DTOParserGoldenTimeProduct : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdCampaintId;
		
		public int OrdCategoryIdParent;
		
		public int OrdProductId;
		
		public int OrdPromotionUnit;
		
		public int OrdPriceUnit;
		
		public int OrdQuantyUnit;
		
		public int OrdViewTime;
		
		public int OrdIsHot;
		
		public int OrdTimeShow;
		
		public int OrdBought;
		
		public int OrdActive;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdCampaintId = reader.GetOrdinal("CampaintId");
	        	
	    	OrdCategoryIdParent = reader.GetOrdinal("CategoryIdParent");
	        	
	    	OrdProductId = reader.GetOrdinal("ProductId");
	        	
	    	OrdPromotionUnit = reader.GetOrdinal("PromotionUnit");
	        	
	    	OrdPriceUnit = reader.GetOrdinal("PriceUnit");
	        	
	    	OrdQuantyUnit = reader.GetOrdinal("QuantyUnit");
	        	
	    	OrdViewTime = reader.GetOrdinal("ViewTime");
	        	
	    	OrdIsHot = reader.GetOrdinal("IsHot");
	        	
	    	OrdTimeShow = reader.GetOrdinal("TimeShow");
	        	
	    	OrdBought = reader.GetOrdinal("Bought");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			GoldenTimeProductDto goldenTimeProduct = new GoldenTimeProductDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { goldenTimeProduct.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdCampaintId)) { goldenTimeProduct.CampaintId = reader.GetString(OrdCampaintId); }
	        	
	    	if (!reader.IsDBNull(OrdCategoryIdParent)) { goldenTimeProduct.CategoryIdParent = reader.GetString(OrdCategoryIdParent); }
	        	
	    	if (!reader.IsDBNull(OrdProductId)) { goldenTimeProduct.ProductId = reader.GetString(OrdProductId); }
	        	
	    	if (!reader.IsDBNull(OrdPromotionUnit)) { goldenTimeProduct.PromotionUnit = reader.GetInt32(OrdPromotionUnit); }
	        	
	    	if (!reader.IsDBNull(OrdPriceUnit)) { goldenTimeProduct.PriceUnit = reader.GetDecimal(OrdPriceUnit); }
	        	
	    	if (!reader.IsDBNull(OrdQuantyUnit)) { goldenTimeProduct.QuantyUnit = reader.GetInt32(OrdQuantyUnit); }
	        	
	    	if (!reader.IsDBNull(OrdViewTime)) { goldenTimeProduct.ViewTime = reader.GetInt32(OrdViewTime); }
	        	
	    	if (!reader.IsDBNull(OrdIsHot)) { goldenTimeProduct.IsHot = reader.GetBoolean(OrdIsHot); }
	        	
	    	if (!reader.IsDBNull(OrdTimeShow)) { goldenTimeProduct.TimeShow = reader.GetDateTime(OrdTimeShow); }
	        	
	    	if (!reader.IsDBNull(OrdBought)) { goldenTimeProduct.Bought = reader.GetBoolean(OrdBought); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { goldenTimeProduct.Active = reader.GetBoolean(OrdActive); }
	        			
			goldenTimeProduct.IsNew = false;
			
			return goldenTimeProduct;
		}
	}
	
		
    public class DTOParserHelp : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdHelpCategoryId;
		
		public int OrdTitle;
		
		public int OrdContent;
		
		public int OrdCreateDate;
		
		public int OrdOrdering;
		
		public int OrdActive;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdHelpCategoryId = reader.GetOrdinal("HelpCategoryId");
	        	
	    	OrdTitle = reader.GetOrdinal("Title");
	        	
	    	OrdContent = reader.GetOrdinal("Content");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdOrdering = reader.GetOrdinal("Ordering");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			HelpDto help = new HelpDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { help.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdHelpCategoryId)) { help.HelpCategoryId = reader.GetInt32(OrdHelpCategoryId); }
	        	
	    	if (!reader.IsDBNull(OrdTitle)) { help.Title = reader.GetString(OrdTitle); }
	        	
	    	if (!reader.IsDBNull(OrdContent)) { help.Content = reader.GetString(OrdContent); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { help.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdOrdering)) { help.Ordering = reader.GetInt32(OrdOrdering); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { help.Active = reader.GetString(OrdActive); }
	        			
			help.IsNew = false;
			
			return help;
		}
	}
	
		
    public class DTOParserHelpCategory : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdCategoryName;
		
		public int OrdParentId;
		
		public int OrdDepth;
		
		public int OrdBreadCrumb;
		
		public int OrdSummary;
		
		public int OrdDescription;
		
		public int OrdCreateDate;
		
		public int OrdIcon;
		
		public int OrdUrl;
		
		public int OrdImagePath;
		
		public int OrdMetaKeyword;
		
		public int OrdMetaDescription;
		
		public int OrdKeyword;
		
		public int OrdIsHot;
		
		public int OrdOrdering;
		
		public int OrdActive;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdCategoryName = reader.GetOrdinal("CategoryName");
	        	
	    	OrdParentId = reader.GetOrdinal("ParentId");
	        	
	    	OrdDepth = reader.GetOrdinal("Depth");
	        	
	    	OrdBreadCrumb = reader.GetOrdinal("BreadCrumb");
	        	
	    	OrdSummary = reader.GetOrdinal("Summary");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdIcon = reader.GetOrdinal("Icon");
	        	
	    	OrdUrl = reader.GetOrdinal("Url");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        	
	    	OrdMetaKeyword = reader.GetOrdinal("MetaKeyword");
	        	
	    	OrdMetaDescription = reader.GetOrdinal("MetaDescription");
	        	
	    	OrdKeyword = reader.GetOrdinal("Keyword");
	        	
	    	OrdIsHot = reader.GetOrdinal("IsHot");
	        	
	    	OrdOrdering = reader.GetOrdinal("Ordering");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			HelpCategoryDto helpCategory = new HelpCategoryDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { helpCategory.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdCategoryName)) { helpCategory.CategoryName = reader.GetString(OrdCategoryName); }
	        	
	    	if (!reader.IsDBNull(OrdParentId)) { helpCategory.ParentId = reader.GetInt32(OrdParentId); }
	        	
	    	if (!reader.IsDBNull(OrdDepth)) { helpCategory.Depth = reader.GetInt32(OrdDepth); }
	        	
	    	if (!reader.IsDBNull(OrdBreadCrumb)) { helpCategory.BreadCrumb = reader.GetString(OrdBreadCrumb); }
	        	
	    	if (!reader.IsDBNull(OrdSummary)) { helpCategory.Summary = reader.GetString(OrdSummary); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { helpCategory.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { helpCategory.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdIcon)) { helpCategory.Icon = reader.GetString(OrdIcon); }
	        	
	    	if (!reader.IsDBNull(OrdUrl)) { helpCategory.Url = reader.GetString(OrdUrl); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { helpCategory.ImagePath = reader.GetString(OrdImagePath); }
	        	
	    	if (!reader.IsDBNull(OrdMetaKeyword)) { helpCategory.MetaKeyword = reader.GetString(OrdMetaKeyword); }
	        	
	    	if (!reader.IsDBNull(OrdMetaDescription)) { helpCategory.MetaDescription = reader.GetString(OrdMetaDescription); }
	        	
	    	if (!reader.IsDBNull(OrdKeyword)) { helpCategory.Keyword = reader.GetString(OrdKeyword); }
	        	
	    	if (!reader.IsDBNull(OrdIsHot)) { helpCategory.IsHot = reader.GetBoolean(OrdIsHot); }
	        	
	    	if (!reader.IsDBNull(OrdOrdering)) { helpCategory.Ordering = reader.GetInt32(OrdOrdering); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { helpCategory.Active = reader.GetString(OrdActive); }
	        			
			helpCategory.IsNew = false;
			
			return helpCategory;
		}
	}
	
		
    public class DTOParserNews : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdCategoryId;
		
		public int OrdTitle;
		
		public int OrdSummary;
		
		public int OrdDescription;
		
		public int OrdMetaTitle;
		
		public int OrdMetaDescription;
		
		public int OrdMetaKeyword;
		
		public int OrdCreateDate;
		
		public int OrdKeyword;
		
		public int OrdImagePath;
		
		public int OrdHot;
		
		public int OrdActive;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdCategoryId = reader.GetOrdinal("CategoryId");
	        	
	    	OrdTitle = reader.GetOrdinal("Title");
	        	
	    	OrdSummary = reader.GetOrdinal("Summary");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdMetaTitle = reader.GetOrdinal("MetaTitle");
	        	
	    	OrdMetaDescription = reader.GetOrdinal("MetaDescription");
	        	
	    	OrdMetaKeyword = reader.GetOrdinal("MetaKeyword");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdKeyword = reader.GetOrdinal("Keyword");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        	
	    	OrdHot = reader.GetOrdinal("Hot");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			NewsDto news = new NewsDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { news.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdCategoryId)) { news.CategoryId = reader.GetInt32(OrdCategoryId); }
	        	
	    	if (!reader.IsDBNull(OrdTitle)) { news.Title = reader.GetString(OrdTitle); }
	        	
	    	if (!reader.IsDBNull(OrdSummary)) { news.Summary = reader.GetString(OrdSummary); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { news.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdMetaTitle)) { news.MetaTitle = reader.GetString(OrdMetaTitle); }
	        	
	    	if (!reader.IsDBNull(OrdMetaDescription)) { news.MetaDescription = reader.GetString(OrdMetaDescription); }
	        	
	    	if (!reader.IsDBNull(OrdMetaKeyword)) { news.MetaKeyword = reader.GetString(OrdMetaKeyword); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { news.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdKeyword)) { news.Keyword = reader.GetString(OrdKeyword); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { news.ImagePath = reader.GetString(OrdImagePath); }
	        	
	    	if (!reader.IsDBNull(OrdHot)) { news.Hot = reader.GetBoolean(OrdHot); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { news.Active = reader.GetBoolean(OrdActive); }
	        			
			news.IsNew = false;
			
			return news;
		}
	}
	
		
    public class DTOParserNewsCategory : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdCateName;
		
		public int OrdParentId;
		
		public int OrdDepth;
		
		public int OrdBreadCrumb;
		
		public int OrdSummary;
		
		public int OrdDescription;
		
		public int OrdCreateDate;
		
		public int OrdIcon;
		
		public int OrdUrl;
		
		public int OrdImagePath;
		
		public int OrdMetaTitle;
		
		public int OrdMetaKeyword;
		
		public int OrdMetaDescription;
		
		public int OrdKeyword;
		
		public int OrdIsHot;
		
		public int OrdOrdering;
		
		public int OrdType;
		
		public int OrdShowHome;
		
		public int OrdActive;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdCateName = reader.GetOrdinal("CateName");
	        	
	    	OrdParentId = reader.GetOrdinal("ParentId");
	        	
	    	OrdDepth = reader.GetOrdinal("Depth");
	        	
	    	OrdBreadCrumb = reader.GetOrdinal("BreadCrumb");
	        	
	    	OrdSummary = reader.GetOrdinal("Summary");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdIcon = reader.GetOrdinal("Icon");
	        	
	    	OrdUrl = reader.GetOrdinal("Url");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        	
	    	OrdMetaTitle = reader.GetOrdinal("MetaTitle");
	        	
	    	OrdMetaKeyword = reader.GetOrdinal("MetaKeyword");
	        	
	    	OrdMetaDescription = reader.GetOrdinal("MetaDescription");
	        	
	    	OrdKeyword = reader.GetOrdinal("Keyword");
	        	
	    	OrdIsHot = reader.GetOrdinal("IsHot");
	        	
	    	OrdOrdering = reader.GetOrdinal("Ordering");
	        	
	    	OrdType = reader.GetOrdinal("Type");
	        	
	    	OrdShowHome = reader.GetOrdinal("ShowHome");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			NewsCategoryDto newsCategory = new NewsCategoryDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { newsCategory.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdCateName)) { newsCategory.CateName = reader.GetString(OrdCateName); }
	        	
	    	if (!reader.IsDBNull(OrdParentId)) { newsCategory.ParentId = reader.GetInt32(OrdParentId); }
	        	
	    	if (!reader.IsDBNull(OrdDepth)) { newsCategory.Depth = reader.GetInt32(OrdDepth); }
	        	
	    	if (!reader.IsDBNull(OrdBreadCrumb)) { newsCategory.BreadCrumb = reader.GetString(OrdBreadCrumb); }
	        	
	    	if (!reader.IsDBNull(OrdSummary)) { newsCategory.Summary = reader.GetString(OrdSummary); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { newsCategory.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { newsCategory.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdIcon)) { newsCategory.Icon = reader.GetString(OrdIcon); }
	        	
	    	if (!reader.IsDBNull(OrdUrl)) { newsCategory.Url = reader.GetString(OrdUrl); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { newsCategory.ImagePath = reader.GetString(OrdImagePath); }
	        	
	    	if (!reader.IsDBNull(OrdMetaTitle)) { newsCategory.MetaTitle = reader.GetString(OrdMetaTitle); }
	        	
	    	if (!reader.IsDBNull(OrdMetaKeyword)) { newsCategory.MetaKeyword = reader.GetString(OrdMetaKeyword); }
	        	
	    	if (!reader.IsDBNull(OrdMetaDescription)) { newsCategory.MetaDescription = reader.GetString(OrdMetaDescription); }
	        	
	    	if (!reader.IsDBNull(OrdKeyword)) { newsCategory.Keyword = reader.GetString(OrdKeyword); }
	        	
	    	if (!reader.IsDBNull(OrdIsHot)) { newsCategory.IsHot = reader.GetBoolean(OrdIsHot); }
	        	
	    	if (!reader.IsDBNull(OrdOrdering)) { newsCategory.Ordering = reader.GetInt32(OrdOrdering); }
	        	
	    	if (!reader.IsDBNull(OrdType)) { newsCategory.Type = reader.GetString(OrdType); }
	        	
	    	if (!reader.IsDBNull(OrdShowHome)) { newsCategory.ShowHome = reader.GetBoolean(OrdShowHome); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { newsCategory.Active = reader.GetBoolean(OrdActive); }
	        			
			newsCategory.IsNew = false;
			
			return newsCategory;
		}
	}
	
		
    public class DTOParserNewsComment : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdCustomerId;
		
		public int OrdNewsId;
		
		public int OrdTitle;
		
		public int OrdContent;
		
		public int OrdEmail;
		
		public int OrdCreateDate;
		
		public int OrdUpdateDate;
		
		public int OrdStar;
		
		public int OrdAgree;
		
		public int OrdDisagree;
		
		public int OrdActive;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdCustomerId = reader.GetOrdinal("CustomerId");
	        	
	    	OrdNewsId = reader.GetOrdinal("NewsId");
	        	
	    	OrdTitle = reader.GetOrdinal("Title");
	        	
	    	OrdContent = reader.GetOrdinal("Content");
	        	
	    	OrdEmail = reader.GetOrdinal("Email");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdUpdateDate = reader.GetOrdinal("UpdateDate");
	        	
	    	OrdStar = reader.GetOrdinal("Star");
	        	
	    	OrdAgree = reader.GetOrdinal("Agree");
	        	
	    	OrdDisagree = reader.GetOrdinal("Disagree");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			NewsCommentDto newsComment = new NewsCommentDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { newsComment.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdCustomerId)) { newsComment.CustomerId = reader.GetInt32(OrdCustomerId); }
	        	
	    	if (!reader.IsDBNull(OrdNewsId)) { newsComment.NewsId = reader.GetInt32(OrdNewsId); }
	        	
	    	if (!reader.IsDBNull(OrdTitle)) { newsComment.Title = reader.GetString(OrdTitle); }
	        	
	    	if (!reader.IsDBNull(OrdContent)) { newsComment.Content = reader.GetString(OrdContent); }
	        	
	    	if (!reader.IsDBNull(OrdEmail)) { newsComment.Email = reader.GetString(OrdEmail); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { newsComment.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdUpdateDate)) { newsComment.UpdateDate = reader.GetDateTime(OrdUpdateDate); }
	        	
	    	if (!reader.IsDBNull(OrdStar)) { newsComment.Star = reader.GetInt32(OrdStar); }
	        	
	    	if (!reader.IsDBNull(OrdAgree)) { newsComment.Agree = reader.GetInt32(OrdAgree); }
	        	
	    	if (!reader.IsDBNull(OrdDisagree)) { newsComment.Disagree = reader.GetInt32(OrdDisagree); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { newsComment.Active = reader.GetString(OrdActive); }
	        			
			newsComment.IsNew = false;
			
			return newsComment;
		}
	}
	
		
    public class DTOParserOrder : DTOParser
    {			
		
		public int OrdOrderId;
		
		public int OrdCustomerId;
		
		public int OrdTotalMoney;
		
		public int OrdDiscount;
		
		public int OrdTransport;
		
		public int OrdPayment;
		
		public int OrdComment;
		
		public int OrdShippingCost;
		
		public int OrdFullName;
		
		public int OrdEmail;
		
		public int OrdTelephone;
		
		public int OrdMobilePhone;
		
		public int OrdAddress;
		
		public int OrdDistrictId;
		
		public int OrdDistrictName;
		
		public int OrdProvinceId;
		
		public int OrdProvinceName;
		
		public int OrdEmailStatus;
		
		public int OrdGender;
		
		public int OrdBirthday;
		
		public int OrdReceiveDate;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdOrderId = reader.GetOrdinal("OrderId");
	        	
	    	OrdCustomerId = reader.GetOrdinal("CustomerId");
	        	
	    	OrdTotalMoney = reader.GetOrdinal("TotalMoney");
	        	
	    	OrdDiscount = reader.GetOrdinal("Discount");
	        	
	    	OrdTransport = reader.GetOrdinal("Transport");
	        	
	    	OrdPayment = reader.GetOrdinal("Payment");
	        	
	    	OrdComment = reader.GetOrdinal("Comment");
	        	
	    	OrdShippingCost = reader.GetOrdinal("ShippingCost");
	        	
	    	OrdFullName = reader.GetOrdinal("FullName");
	        	
	    	OrdEmail = reader.GetOrdinal("Email");
	        	
	    	OrdTelephone = reader.GetOrdinal("Telephone");
	        	
	    	OrdMobilePhone = reader.GetOrdinal("MobilePhone");
	        	
	    	OrdAddress = reader.GetOrdinal("Address");
	        	
	    	OrdDistrictId = reader.GetOrdinal("DistrictId");
	        	
	    	OrdDistrictName = reader.GetOrdinal("DistrictName");
	        	
	    	OrdProvinceId = reader.GetOrdinal("ProvinceId");
	        	
	    	OrdProvinceName = reader.GetOrdinal("ProvinceName");
	        	
	    	OrdEmailStatus = reader.GetOrdinal("EmailStatus");
	        	
	    	OrdGender = reader.GetOrdinal("Gender");
	        	
	    	OrdBirthday = reader.GetOrdinal("Birthday");
	        	
	    	OrdReceiveDate = reader.GetOrdinal("ReceiveDate");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			OrderDto order = new OrderDto();
			
				
	    	if (!reader.IsDBNull(OrdOrderId)) { order.OrderId = reader.GetString(OrdOrderId); }
	        	
	    	if (!reader.IsDBNull(OrdCustomerId)) { order.CustomerId = reader.GetString(OrdCustomerId); }
	        	
	    	if (!reader.IsDBNull(OrdTotalMoney)) { order.TotalMoney = reader.GetDecimal(OrdTotalMoney); }
	        	
	    	if (!reader.IsDBNull(OrdDiscount)) { order.Discount = reader.GetDecimal(OrdDiscount); }
	        	
	    	if (!reader.IsDBNull(OrdTransport)) { order.Transport = reader.GetString(OrdTransport); }
	        	
	    	if (!reader.IsDBNull(OrdPayment)) { order.Payment = reader.GetString(OrdPayment); }
	        	
	    	if (!reader.IsDBNull(OrdComment)) { order.Comment = reader.GetString(OrdComment); }
	        	
	    	if (!reader.IsDBNull(OrdShippingCost)) { order.ShippingCost = reader.GetDecimal(OrdShippingCost); }
	        	
	    	if (!reader.IsDBNull(OrdFullName)) { order.FullName = reader.GetString(OrdFullName); }
	        	
	    	if (!reader.IsDBNull(OrdEmail)) { order.Email = reader.GetString(OrdEmail); }
	        	
	    	if (!reader.IsDBNull(OrdTelephone)) { order.Telephone = reader.GetString(OrdTelephone); }
	        	
	    	if (!reader.IsDBNull(OrdMobilePhone)) { order.MobilePhone = reader.GetString(OrdMobilePhone); }
	        	
	    	if (!reader.IsDBNull(OrdAddress)) { order.Address = reader.GetString(OrdAddress); }
	        	
	    	if (!reader.IsDBNull(OrdDistrictId)) { order.DistrictId = reader.GetString(OrdDistrictId); }
	        	
	    	if (!reader.IsDBNull(OrdDistrictName)) { order.DistrictName = reader.GetString(OrdDistrictName); }
	        	
	    	if (!reader.IsDBNull(OrdProvinceId)) { order.ProvinceId = reader.GetString(OrdProvinceId); }
	        	
	    	if (!reader.IsDBNull(OrdProvinceName)) { order.ProvinceName = reader.GetString(OrdProvinceName); }
	        	
	    	if (!reader.IsDBNull(OrdEmailStatus)) { order.EmailStatus = reader.GetBoolean(OrdEmailStatus); }
	        	
	    	if (!reader.IsDBNull(OrdGender)) { order.Gender = reader.GetString(OrdGender); }
	        	
	    	if (!reader.IsDBNull(OrdBirthday)) { order.Birthday = reader.GetDateTime(OrdBirthday); }
	        	
	    	if (!reader.IsDBNull(OrdReceiveDate)) { order.ReceiveDate = reader.GetDateTime(OrdReceiveDate); }
	        			
			order.IsNew = false;
			
			return order;
		}
	}
	
		
    public class DTOParserOrderDetail : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdOrderId;
		
		public int OrdProductId;
		
		public int OrdQuantity;
		
		public int OrdPrice;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdOrderId = reader.GetOrdinal("OrderId");
	        	
	    	OrdProductId = reader.GetOrdinal("ProductId");
	        	
	    	OrdQuantity = reader.GetOrdinal("Quantity");
	        	
	    	OrdPrice = reader.GetOrdinal("Price");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			OrderDetailDto orderDetail = new OrderDetailDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { orderDetail.Id = reader.GetInt64(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdOrderId)) { orderDetail.OrderId = reader.GetString(OrdOrderId); }
	        	
	    	if (!reader.IsDBNull(OrdProductId)) { orderDetail.ProductId = reader.GetString(OrdProductId); }
	        	
	    	if (!reader.IsDBNull(OrdQuantity)) { orderDetail.Quantity = reader.GetInt32(OrdQuantity); }
	        	
	    	if (!reader.IsDBNull(OrdPrice)) { orderDetail.Price = reader.GetDecimal(OrdPrice); }
	        			
			orderDetail.IsNew = false;
			
			return orderDetail;
		}
	}
	
		
    public class DTOParserPage : DTOParser
    {			
		
		public int OrdPageId;
		
		public int OrdName;
		
		public int OrdPageKey;
		
		public int OrdCreateDate;
		
		public int OrdOrder;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdPageId = reader.GetOrdinal("PageId");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdPageKey = reader.GetOrdinal("PageKey");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdOrder = reader.GetOrdinal("Order");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			PageDto page = new PageDto();
			
				
	    	if (!reader.IsDBNull(OrdPageId)) { page.PageId = reader.GetInt32(OrdPageId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { page.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdPageKey)) { page.PageKey = reader.GetString(OrdPageKey); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { page.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdOrder)) { page.Order = reader.GetInt32(OrdOrder); }
	        			
			page.IsNew = false;
			
			return page;
		}
	}
	
		
    public class DTOParserPosition : DTOParser
    {			
		
		public int OrdPositionId;
		
		public int OrdPageId;
		
		public int OrdName;
		
		public int OrdPositionKey;
		
		public int OrdCreateDate;
		
		public int OrdOrder;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdPositionId = reader.GetOrdinal("PositionId");
	        	
	    	OrdPageId = reader.GetOrdinal("PageId");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdPositionKey = reader.GetOrdinal("PositionKey");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdOrder = reader.GetOrdinal("Order");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			PositionDto position = new PositionDto();
			
				
	    	if (!reader.IsDBNull(OrdPositionId)) { position.PositionId = reader.GetInt32(OrdPositionId); }
	        	
	    	if (!reader.IsDBNull(OrdPageId)) { position.PageId = reader.GetInt32(OrdPageId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { position.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdPositionKey)) { position.PositionKey = reader.GetString(OrdPositionKey); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { position.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdOrder)) { position.Order = reader.GetInt32(OrdOrder); }
	        			
			position.IsNew = false;
			
			return position;
		}
	}
	
		
    public class DTOParserProduct : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdBarcode;
		
		public int OrdCategoryId;
		
		public int OrdProviderId;
		
		public int OrdName;
		
		public int OrdNameUnsign;
		
		public int OrdSummary;
		
		public int OrdDescription;
		
		public int OrdMetaTitle;
		
		public int OrdMetaDescription;
		
		public int OrdMetaKeyword;
		
		public int OrdImagePath;
		
		public int OrdShow;
		
		public int OrdPrice;
		
		public int OrdQuantity;
		
		public int OrdProductStatus;
		
		public int OrdStockStatus;
		
		public int OrdCustomInfoFirst;
		
		public int OrdCustomInfoSecond;
		
		public int OrdCustomInfoThird;
		
		public int OrdIsShipEnabled;
		
		public int OrdIsFreeShipping;
		
		public int OrdTotalView;
		
		public int OrdAverageRate;
		
		public int OrdProductType;
		
		public int OrdCreateDate;
		
		public int OrdUpdateDate;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdBarcode = reader.GetOrdinal("Barcode");
	        	
	    	OrdCategoryId = reader.GetOrdinal("CategoryId");
	        	
	    	OrdProviderId = reader.GetOrdinal("ProviderId");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdNameUnsign = reader.GetOrdinal("NameUnsign");
	        	
	    	OrdSummary = reader.GetOrdinal("Summary");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdMetaTitle = reader.GetOrdinal("MetaTitle");
	        	
	    	OrdMetaDescription = reader.GetOrdinal("MetaDescription");
	        	
	    	OrdMetaKeyword = reader.GetOrdinal("MetaKeyword");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        	
	    	OrdShow = reader.GetOrdinal("Show");
	        	
	    	OrdPrice = reader.GetOrdinal("Price");
	        	
	    	OrdQuantity = reader.GetOrdinal("Quantity");
	        	
	    	OrdProductStatus = reader.GetOrdinal("ProductStatus");
	        	
	    	OrdStockStatus = reader.GetOrdinal("StockStatus");
	        	
	    	OrdCustomInfoFirst = reader.GetOrdinal("CustomInfoFirst");
	        	
	    	OrdCustomInfoSecond = reader.GetOrdinal("CustomInfoSecond");
	        	
	    	OrdCustomInfoThird = reader.GetOrdinal("CustomInfoThird");
	        	
	    	OrdIsShipEnabled = reader.GetOrdinal("IsShipEnabled");
	        	
	    	OrdIsFreeShipping = reader.GetOrdinal("IsFreeShipping");
	        	
	    	OrdTotalView = reader.GetOrdinal("TotalView");
	        	
	    	OrdAverageRate = reader.GetOrdinal("AverageRate");
	        	
	    	OrdProductType = reader.GetOrdinal("ProductType");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdUpdateDate = reader.GetOrdinal("UpdateDate");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductDto product = new ProductDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { product.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdBarcode)) { product.Barcode = reader.GetString(OrdBarcode); }
	        	
	    	if (!reader.IsDBNull(OrdCategoryId)) { product.CategoryId = reader.GetString(OrdCategoryId); }
	        	
	    	if (!reader.IsDBNull(OrdProviderId)) { product.ProviderId = reader.GetInt32(OrdProviderId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { product.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdNameUnsign)) { product.NameUnsign = reader.GetString(OrdNameUnsign); }
	        	
	    	if (!reader.IsDBNull(OrdSummary)) { product.Summary = reader.GetString(OrdSummary); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { product.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdMetaTitle)) { product.MetaTitle = reader.GetString(OrdMetaTitle); }
	        	
	    	if (!reader.IsDBNull(OrdMetaDescription)) { product.MetaDescription = reader.GetString(OrdMetaDescription); }
	        	
	    	if (!reader.IsDBNull(OrdMetaKeyword)) { product.MetaKeyword = reader.GetString(OrdMetaKeyword); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { product.ImagePath = reader.GetString(OrdImagePath); }
	        	
	    	if (!reader.IsDBNull(OrdShow)) { product.Show = reader.GetBoolean(OrdShow); }
	        	
	    	if (!reader.IsDBNull(OrdPrice)) { product.Price = reader.GetDecimal(OrdPrice); }
	        	
	    	if (!reader.IsDBNull(OrdQuantity)) { product.Quantity = reader.GetInt32(OrdQuantity); }
	        	
	    	if (!reader.IsDBNull(OrdProductStatus)) { product.ProductStatus = reader.GetString(OrdProductStatus); }
	        	
	    	if (!reader.IsDBNull(OrdStockStatus)) { product.StockStatus = reader.GetBoolean(OrdStockStatus); }
	        	
	    	if (!reader.IsDBNull(OrdCustomInfoFirst)) { product.CustomInfoFirst = reader.GetString(OrdCustomInfoFirst); }
	        	
	    	if (!reader.IsDBNull(OrdCustomInfoSecond)) { product.CustomInfoSecond = reader.GetString(OrdCustomInfoSecond); }
	        	
	    	if (!reader.IsDBNull(OrdCustomInfoThird)) { product.CustomInfoThird = reader.GetString(OrdCustomInfoThird); }
	        	
	    	if (!reader.IsDBNull(OrdIsShipEnabled)) { product.IsShipEnabled = reader.GetBoolean(OrdIsShipEnabled); }
	        	
	    	if (!reader.IsDBNull(OrdIsFreeShipping)) { product.IsFreeShipping = reader.GetBoolean(OrdIsFreeShipping); }
	        	
	    	if (!reader.IsDBNull(OrdTotalView)) { product.TotalView = reader.GetInt32(OrdTotalView); }
	        	
	    	if (!reader.IsDBNull(OrdAverageRate)) { product.AverageRate = reader.GetDouble(OrdAverageRate); }
	        	
	    	if (!reader.IsDBNull(OrdProductType)) { product.ProductType = reader.GetInt32(OrdProductType); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { product.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdUpdateDate)) { product.UpdateDate = reader.GetDateTime(OrdUpdateDate); }
	        			
			product.IsNew = false;
			
			return product;
		}
	}
	
		
    public class DTOParserProductBarcodeNew : DTOParser
    {			
		
		public int OrdProductId;
		
		public int OrdProductIdNew;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdProductId = reader.GetOrdinal("ProductId");
	        	
	    	OrdProductIdNew = reader.GetOrdinal("ProductIdNew");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductBarcodeNewDto productBarcodeNew = new ProductBarcodeNewDto();
			
				
	    	if (!reader.IsDBNull(OrdProductId)) { productBarcodeNew.ProductId = reader.GetString(OrdProductId); }
	        	
	    	if (!reader.IsDBNull(OrdProductIdNew)) { productBarcodeNew.ProductIdNew = reader.GetString(OrdProductIdNew); }
	        			
			productBarcodeNew.IsNew = false;
			
			return productBarcodeNew;
		}
	}
	
		
    public class DTOParserProductCategory : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdName;
		
		public int OrdParentId;
		
		public int OrdDepth;
		
		public int OrdBreadCrumb;
		
		public int OrdSummary;
		
		public int OrdSummaryCate;
		
		public int OrdDescription;
		
		public int OrdCreatedDate;
		
		public int OrdIcon;
		
		public int OrdUrl;
		
		public int OrdImagePath;
		
		public int OrdMetaKeyword;
		
		public int OrdMetaDescription;
		
		public int OrdKeyword;
		
		public int OrdIsHot;
		
		public int OrdOrdering;
		
		public int OrdActive;
		
		public int OrdIconPath;
		
		public int OrdShowHome;
		
		public int OrdMetaTitle;
		
		public int OrdOrderOnHome;
		
		public int OrdPriceRanges;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdParentId = reader.GetOrdinal("ParentId");
	        	
	    	OrdDepth = reader.GetOrdinal("Depth");
	        	
	    	OrdBreadCrumb = reader.GetOrdinal("BreadCrumb");
	        	
	    	OrdSummary = reader.GetOrdinal("Summary");
	        	
	    	OrdSummaryCate = reader.GetOrdinal("SummaryCate");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdCreatedDate = reader.GetOrdinal("CreatedDate");
	        	
	    	OrdIcon = reader.GetOrdinal("Icon");
	        	
	    	OrdUrl = reader.GetOrdinal("Url");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        	
	    	OrdMetaKeyword = reader.GetOrdinal("MetaKeyword");
	        	
	    	OrdMetaDescription = reader.GetOrdinal("MetaDescription");
	        	
	    	OrdKeyword = reader.GetOrdinal("Keyword");
	        	
	    	OrdIsHot = reader.GetOrdinal("IsHot");
	        	
	    	OrdOrdering = reader.GetOrdinal("Ordering");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        	
	    	OrdIconPath = reader.GetOrdinal("IconPath");
	        	
	    	OrdShowHome = reader.GetOrdinal("ShowHome");
	        	
	    	OrdMetaTitle = reader.GetOrdinal("MetaTitle");
	        	
	    	OrdOrderOnHome = reader.GetOrdinal("OrderOnHome");
	        	
	    	OrdPriceRanges = reader.GetOrdinal("PriceRanges");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductCategoryDto productCategory = new ProductCategoryDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { productCategory.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { productCategory.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdParentId)) { productCategory.ParentId = reader.GetString(OrdParentId); }
	        	
	    	if (!reader.IsDBNull(OrdDepth)) { productCategory.Depth = reader.GetInt32(OrdDepth); }
	        	
	    	if (!reader.IsDBNull(OrdBreadCrumb)) { productCategory.BreadCrumb = reader.GetString(OrdBreadCrumb); }
	        	
	    	if (!reader.IsDBNull(OrdSummary)) { productCategory.Summary = reader.GetString(OrdSummary); }
	        	
	    	if (!reader.IsDBNull(OrdSummaryCate)) { productCategory.SummaryCate = reader.GetString(OrdSummaryCate); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { productCategory.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdCreatedDate)) { productCategory.CreatedDate = reader.GetDateTime(OrdCreatedDate); }
	        	
	    	if (!reader.IsDBNull(OrdIcon)) { productCategory.Icon = reader.GetString(OrdIcon); }
	        	
	    	if (!reader.IsDBNull(OrdUrl)) { productCategory.Url = reader.GetString(OrdUrl); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { productCategory.ImagePath = reader.GetString(OrdImagePath); }
	        	
	    	if (!reader.IsDBNull(OrdMetaKeyword)) { productCategory.MetaKeyword = reader.GetString(OrdMetaKeyword); }
	        	
	    	if (!reader.IsDBNull(OrdMetaDescription)) { productCategory.MetaDescription = reader.GetString(OrdMetaDescription); }
	        	
	    	if (!reader.IsDBNull(OrdKeyword)) { productCategory.Keyword = reader.GetString(OrdKeyword); }
	        	
	    	if (!reader.IsDBNull(OrdIsHot)) { productCategory.IsHot = reader.GetBoolean(OrdIsHot); }
	        	
	    	if (!reader.IsDBNull(OrdOrdering)) { productCategory.Ordering = reader.GetInt32(OrdOrdering); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { productCategory.Active = reader.GetBoolean(OrdActive); }
	        	
	    	if (!reader.IsDBNull(OrdIconPath)) { productCategory.IconPath = reader.GetString(OrdIconPath); }
	        	
	    	if (!reader.IsDBNull(OrdShowHome)) { productCategory.ShowHome = reader.GetBoolean(OrdShowHome); }
	        	
	    	if (!reader.IsDBNull(OrdMetaTitle)) { productCategory.MetaTitle = reader.GetString(OrdMetaTitle); }
	        	
	    	if (!reader.IsDBNull(OrdOrderOnHome)) { productCategory.OrderOnHome = reader.GetInt32(OrdOrderOnHome); }
	        	
	    	if (!reader.IsDBNull(OrdPriceRanges)) { productCategory.PriceRanges = reader.GetString(OrdPriceRanges); }
	        			
			productCategory.IsNew = false;
			
			return productCategory;
		}
	}
	
		
    public class DTOParserProductCategoryBanner : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdBannerName;
		
		public int OrdCategoryId;
		
		public int OrdDescription;
		
		public int OrdImagePath;
		
		public int OrdUrl;
		
		public int OrdCreateDate;
		
		public int OrdBeginDate;
		
		public int OrdEndDate;
		
		public int OrdWidth;
		
		public int OrdHeight;
		
		public int OrdOrdering;
		
		public int OrdPage;
		
		public int OrdPoi;
		
		public int OrdActive;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdBannerName = reader.GetOrdinal("BannerName");
	        	
	    	OrdCategoryId = reader.GetOrdinal("CategoryId");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        	
	    	OrdUrl = reader.GetOrdinal("Url");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdBeginDate = reader.GetOrdinal("BeginDate");
	        	
	    	OrdEndDate = reader.GetOrdinal("EndDate");
	        	
	    	OrdWidth = reader.GetOrdinal("Width");
	        	
	    	OrdHeight = reader.GetOrdinal("Height");
	        	
	    	OrdOrdering = reader.GetOrdinal("Ordering");
	        	
	    	OrdPage = reader.GetOrdinal("Page");
	        	
	    	OrdPoi = reader.GetOrdinal("Poi");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductCategoryBannerDto productCategoryBanner = new ProductCategoryBannerDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { productCategoryBanner.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdBannerName)) { productCategoryBanner.BannerName = reader.GetString(OrdBannerName); }
	        	
	    	if (!reader.IsDBNull(OrdCategoryId)) { productCategoryBanner.CategoryId = reader.GetString(OrdCategoryId); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { productCategoryBanner.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { productCategoryBanner.ImagePath = reader.GetString(OrdImagePath); }
	        	
	    	if (!reader.IsDBNull(OrdUrl)) { productCategoryBanner.Url = reader.GetString(OrdUrl); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { productCategoryBanner.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdBeginDate)) { productCategoryBanner.BeginDate = reader.GetDateTime(OrdBeginDate); }
	        	
	    	if (!reader.IsDBNull(OrdEndDate)) { productCategoryBanner.EndDate = reader.GetDateTime(OrdEndDate); }
	        	
	    	if (!reader.IsDBNull(OrdWidth)) { productCategoryBanner.Width = reader.GetInt32(OrdWidth); }
	        	
	    	if (!reader.IsDBNull(OrdHeight)) { productCategoryBanner.Height = reader.GetInt32(OrdHeight); }
	        	
	    	if (!reader.IsDBNull(OrdOrdering)) { productCategoryBanner.Ordering = reader.GetInt32(OrdOrdering); }
	        	
	    	if (!reader.IsDBNull(OrdPage)) { productCategoryBanner.Page = reader.GetInt32(OrdPage); }
	        	
	    	if (!reader.IsDBNull(OrdPoi)) { productCategoryBanner.Poi = reader.GetInt32(OrdPoi); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { productCategoryBanner.Active = reader.GetBoolean(OrdActive); }
	        			
			productCategoryBanner.IsNew = false;
			
			return productCategoryBanner;
		}
	}
	
		
    public class DTOParserProductCategoryMapLink : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdCategoryId;
		
		public int OrdName;
		
		public int OrdUrl;
		
		public int OrdPosition;
		
		public int OrdOrdering;
		
		public int OrdActive;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdCategoryId = reader.GetOrdinal("CategoryId");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdUrl = reader.GetOrdinal("Url");
	        	
	    	OrdPosition = reader.GetOrdinal("Position");
	        	
	    	OrdOrdering = reader.GetOrdinal("Ordering");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductCategoryMapLinkDto productCategoryMapLink = new ProductCategoryMapLinkDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { productCategoryMapLink.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdCategoryId)) { productCategoryMapLink.CategoryId = reader.GetString(OrdCategoryId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { productCategoryMapLink.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdUrl)) { productCategoryMapLink.Url = reader.GetString(OrdUrl); }
	        	
	    	if (!reader.IsDBNull(OrdPosition)) { productCategoryMapLink.Position = reader.GetString(OrdPosition); }
	        	
	    	if (!reader.IsDBNull(OrdOrdering)) { productCategoryMapLink.Ordering = reader.GetInt32(OrdOrdering); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { productCategoryMapLink.Active = reader.GetBoolean(OrdActive); }
	        			
			productCategoryMapLink.IsNew = false;
			
			return productCategoryMapLink;
		}
	}
	
		
    public class DTOParserProductCateTempMapping : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdTemplateId;
		
		public int OrdProductCateId;
		
		public int OrdIsOnHomePage;
		
		public int OrdDescription;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdTemplateId = reader.GetOrdinal("TemplateId");
	        	
	    	OrdProductCateId = reader.GetOrdinal("ProductCateId");
	        	
	    	OrdIsOnHomePage = reader.GetOrdinal("IsOnHomePage");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductCateTempMappingDto productCateTempMapping = new ProductCateTempMappingDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { productCateTempMapping.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdTemplateId)) { productCateTempMapping.TemplateId = reader.GetInt32(OrdTemplateId); }
	        	
	    	if (!reader.IsDBNull(OrdProductCateId)) { productCateTempMapping.ProductCateId = reader.GetString(OrdProductCateId); }
	        	
	    	if (!reader.IsDBNull(OrdIsOnHomePage)) { productCateTempMapping.IsOnHomePage = reader.GetBoolean(OrdIsOnHomePage); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { productCateTempMapping.Description = reader.GetString(OrdDescription); }
	        			
			productCateTempMapping.IsNew = false;
			
			return productCateTempMapping;
		}
	}
	
		
    public class DTOParserProductComment : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdParentId;
		
		public int OrdCustomerId;
		
		public int OrdProductId;
		
		public int OrdTitle;
		
		public int OrdContent;
		
		public int OrdEmail;
		
		public int OrdCreateDate;
		
		public int OrdUpdateDate;
		
		public int OrdStar;
		
		public int OrdAgree;
		
		public int OrdActive;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdParentId = reader.GetOrdinal("ParentId");
	        	
	    	OrdCustomerId = reader.GetOrdinal("CustomerId");
	        	
	    	OrdProductId = reader.GetOrdinal("ProductId");
	        	
	    	OrdTitle = reader.GetOrdinal("Title");
	        	
	    	OrdContent = reader.GetOrdinal("Content");
	        	
	    	OrdEmail = reader.GetOrdinal("Email");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdUpdateDate = reader.GetOrdinal("UpdateDate");
	        	
	    	OrdStar = reader.GetOrdinal("Star");
	        	
	    	OrdAgree = reader.GetOrdinal("Agree");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductCommentDto productComment = new ProductCommentDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { productComment.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdParentId)) { productComment.ParentId = reader.GetInt32(OrdParentId); }
	        	
	    	if (!reader.IsDBNull(OrdCustomerId)) { productComment.CustomerId = reader.GetString(OrdCustomerId); }
	        	
	    	if (!reader.IsDBNull(OrdProductId)) { productComment.ProductId = reader.GetString(OrdProductId); }
	        	
	    	if (!reader.IsDBNull(OrdTitle)) { productComment.Title = reader.GetString(OrdTitle); }
	        	
	    	if (!reader.IsDBNull(OrdContent)) { productComment.Content = reader.GetString(OrdContent); }
	        	
	    	if (!reader.IsDBNull(OrdEmail)) { productComment.Email = reader.GetString(OrdEmail); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { productComment.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdUpdateDate)) { productComment.UpdateDate = reader.GetDateTime(OrdUpdateDate); }
	        	
	    	if (!reader.IsDBNull(OrdStar)) { productComment.Star = reader.GetInt32(OrdStar); }
	        	
	    	if (!reader.IsDBNull(OrdAgree)) { productComment.Agree = reader.GetBoolean(OrdAgree); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { productComment.Active = reader.GetBoolean(OrdActive); }
	        			
			productComment.IsNew = false;
			
			return productComment;
		}
	}
	
		
    public class DTOParserProductHot : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdProductId;
		
		public int OrdEndDate;
		
		public int OrdShow;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdProductId = reader.GetOrdinal("ProductId");
	        	
	    	OrdEndDate = reader.GetOrdinal("EndDate");
	        	
	    	OrdShow = reader.GetOrdinal("Show");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductHotDto productHot = new ProductHotDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { productHot.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdProductId)) { productHot.ProductId = reader.GetString(OrdProductId); }
	        	
	    	if (!reader.IsDBNull(OrdEndDate)) { productHot.EndDate = reader.GetDateTime(OrdEndDate); }
	        	
	    	if (!reader.IsDBNull(OrdShow)) { productHot.Show = reader.GetBoolean(OrdShow); }
	        			
			productHot.IsNew = false;
			
			return productHot;
		}
	}
	
		
    public class DTOParserProductImage : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdProductId;
		
		public int OrdImagePath;
		
		public int OrdOrdering;
		
		public int OrdDescription;
		
		public int OrdColorId;
		
		public int OrdAvartar;
		
		public int OrdActive;
		
		public int OrdImageName;
		
		public int OrdCreatedDate;
		
		public int OrdModifiedDate;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdProductId = reader.GetOrdinal("ProductId");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        	
	    	OrdOrdering = reader.GetOrdinal("Ordering");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdColorId = reader.GetOrdinal("ColorId");
	        	
	    	OrdAvartar = reader.GetOrdinal("Avartar");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        	
	    	OrdImageName = reader.GetOrdinal("ImageName");
	        	
	    	OrdCreatedDate = reader.GetOrdinal("CreatedDate");
	        	
	    	OrdModifiedDate = reader.GetOrdinal("ModifiedDate");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductImageDto productImage = new ProductImageDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { productImage.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdProductId)) { productImage.ProductId = reader.GetString(OrdProductId); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { productImage.ImagePath = reader.GetString(OrdImagePath); }
	        	
	    	if (!reader.IsDBNull(OrdOrdering)) { productImage.Ordering = reader.GetInt32(OrdOrdering); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { productImage.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdColorId)) { productImage.ColorId = reader.GetString(OrdColorId); }
	        	
	    	if (!reader.IsDBNull(OrdAvartar)) { productImage.Avartar = reader.GetBoolean(OrdAvartar); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { productImage.Active = reader.GetBoolean(OrdActive); }
	        	
	    	if (!reader.IsDBNull(OrdImageName)) { productImage.ImageName = reader.GetString(OrdImageName); }
	        	
	    	if (!reader.IsDBNull(OrdCreatedDate)) { productImage.CreatedDate = reader.GetDateTime(OrdCreatedDate); }
	        	
	    	if (!reader.IsDBNull(OrdModifiedDate)) { productImage.ModifiedDate = reader.GetDateTime(OrdModifiedDate); }
	        			
			productImage.IsNew = false;
			
			return productImage;
		}
	}
	
		
    public class DTOParserProductSize : DTOParser
    {			
		
		public int OrdSizeId;
		
		public int OrdProductId;
		
		public int OrdSizePrice;
		
		public int OrdCreateDate;
		
		public int OrdShow;
		
		public int OrdOrder;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdSizeId = reader.GetOrdinal("SizeId");
	        	
	    	OrdProductId = reader.GetOrdinal("ProductId");
	        	
	    	OrdSizePrice = reader.GetOrdinal("SizePrice");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdShow = reader.GetOrdinal("Show");
	        	
	    	OrdOrder = reader.GetOrdinal("Order");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductSizeDto productSize = new ProductSizeDto();
			
				
	    	if (!reader.IsDBNull(OrdSizeId)) { productSize.SizeId = reader.GetString(OrdSizeId); }
	        	
	    	if (!reader.IsDBNull(OrdProductId)) { productSize.ProductId = reader.GetString(OrdProductId); }
	        	
	    	if (!reader.IsDBNull(OrdSizePrice)) { productSize.SizePrice = reader.GetDecimal(OrdSizePrice); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { productSize.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdShow)) { productSize.Show = reader.GetBoolean(OrdShow); }
	        	
	    	if (!reader.IsDBNull(OrdOrder)) { productSize.Order = reader.GetInt32(OrdOrder); }
	        			
			productSize.IsNew = false;
			
			return productSize;
		}
	}
	
		
    public class DTOParserProductTag : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdName;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductTagDto productTag = new ProductTagDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { productTag.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { productTag.Name = reader.GetString(OrdName); }
	        			
			productTag.IsNew = false;
			
			return productTag;
		}
	}
	
		
    public class DTOParserProductTagMapping : DTOParser
    {			
		
		public int OrdProductId;
		
		public int OrdProductTagId;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdProductId = reader.GetOrdinal("ProductId");
	        	
	    	OrdProductTagId = reader.GetOrdinal("ProductTagId");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductTagMappingDto productTagMapping = new ProductTagMappingDto();
			
				
	    	if (!reader.IsDBNull(OrdProductId)) { productTagMapping.ProductId = reader.GetString(OrdProductId); }
	        	
	    	if (!reader.IsDBNull(OrdProductTagId)) { productTagMapping.ProductTagId = reader.GetInt32(OrdProductTagId); }
	        			
			productTagMapping.IsNew = false;
			
			return productTagMapping;
		}
	}
	
		
    public class DTOParserProductTogether : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdProductId;
		
		public int OrdMappingId;
		
		public int OrdShow;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdProductId = reader.GetOrdinal("ProductId");
	        	
	    	OrdMappingId = reader.GetOrdinal("MappingId");
	        	
	    	OrdShow = reader.GetOrdinal("Show");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductTogetherDto productTogether = new ProductTogetherDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { productTogether.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdProductId)) { productTogether.ProductId = reader.GetString(OrdProductId); }
	        	
	    	if (!reader.IsDBNull(OrdMappingId)) { productTogether.MappingId = reader.GetString(OrdMappingId); }
	        	
	    	if (!reader.IsDBNull(OrdShow)) { productTogether.Show = reader.GetBoolean(OrdShow); }
	        			
			productTogether.IsNew = false;
			
			return productTogether;
		}
	}
	
		
    public class DTOParserProductTypicalAttribute : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdName;
		
		public int OrdDescription;
		
		public int OrdCreatedDate;
		
		public int OrdModifiedDate;
		
		public int OrdOrdering;
		
		public int OrdShow;
		
		public int OrdProductId;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdCreatedDate = reader.GetOrdinal("CreatedDate");
	        	
	    	OrdModifiedDate = reader.GetOrdinal("ModifiedDate");
	        	
	    	OrdOrdering = reader.GetOrdinal("Ordering");
	        	
	    	OrdShow = reader.GetOrdinal("Show");
	        	
	    	OrdProductId = reader.GetOrdinal("ProductId");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductTypicalAttributeDto productTypicalAttribute = new ProductTypicalAttributeDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { productTypicalAttribute.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { productTypicalAttribute.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { productTypicalAttribute.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdCreatedDate)) { productTypicalAttribute.CreatedDate = reader.GetDateTime(OrdCreatedDate); }
	        	
	    	if (!reader.IsDBNull(OrdModifiedDate)) { productTypicalAttribute.ModifiedDate = reader.GetDateTime(OrdModifiedDate); }
	        	
	    	if (!reader.IsDBNull(OrdOrdering)) { productTypicalAttribute.Ordering = reader.GetInt32(OrdOrdering); }
	        	
	    	if (!reader.IsDBNull(OrdShow)) { productTypicalAttribute.Show = reader.GetBoolean(OrdShow); }
	        	
	    	if (!reader.IsDBNull(OrdProductId)) { productTypicalAttribute.ProductId = reader.GetString(OrdProductId); }
	        			
			productTypicalAttribute.IsNew = false;
			
			return productTypicalAttribute;
		}
	}
	
		
    public class DTOParserProvider : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdName;
		
		public int OrdOrdering;
		
		public int OrdDescription;
		
		public int OrdImagePath;
		
		public int OrdShowHome;
		
		public int OrdHot;
		
		public int OrdActive;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdOrdering = reader.GetOrdinal("Ordering");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        	
	    	OrdShowHome = reader.GetOrdinal("ShowHome");
	        	
	    	OrdHot = reader.GetOrdinal("Hot");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProviderDto provider = new ProviderDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { provider.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { provider.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdOrdering)) { provider.Ordering = reader.GetInt32(OrdOrdering); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { provider.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { provider.ImagePath = reader.GetString(OrdImagePath); }
	        	
	    	if (!reader.IsDBNull(OrdShowHome)) { provider.ShowHome = reader.GetBoolean(OrdShowHome); }
	        	
	    	if (!reader.IsDBNull(OrdHot)) { provider.Hot = reader.GetBoolean(OrdHot); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { provider.Active = reader.GetString(OrdActive); }
	        			
			provider.IsNew = false;
			
			return provider;
		}
	}
	
		
    public class DTOParserRate : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdCustomerId;
		
		public int OrdProductId;
		
		public int OrdStar;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdCustomerId = reader.GetOrdinal("CustomerId");
	        	
	    	OrdProductId = reader.GetOrdinal("ProductId");
	        	
	    	OrdStar = reader.GetOrdinal("Star");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			RateDto rate = new RateDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { rate.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdCustomerId)) { rate.CustomerId = reader.GetString(OrdCustomerId); }
	        	
	    	if (!reader.IsDBNull(OrdProductId)) { rate.ProductId = reader.GetString(OrdProductId); }
	        	
	    	if (!reader.IsDBNull(OrdStar)) { rate.Star = reader.GetInt32(OrdStar); }
	        			
			rate.IsNew = false;
			
			return rate;
		}
	}
	
		
    public class DTOParserRateDetail : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdProductId;
		
		public int OrdStar1;
		
		public int OrdStar2;
		
		public int OrdStar3;
		
		public int OrdStar4;
		
		public int OrdStar5;
		
		public int OrdTotalRate;
		
		public int OrdAverageRate;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdProductId = reader.GetOrdinal("ProductId");
	        	
	    	OrdStar1 = reader.GetOrdinal("Star1");
	        	
	    	OrdStar2 = reader.GetOrdinal("Star2");
	        	
	    	OrdStar3 = reader.GetOrdinal("Star3");
	        	
	    	OrdStar4 = reader.GetOrdinal("Star4");
	        	
	    	OrdStar5 = reader.GetOrdinal("Star5");
	        	
	    	OrdTotalRate = reader.GetOrdinal("TotalRate");
	        	
	    	OrdAverageRate = reader.GetOrdinal("AverageRate");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			RateDetailDto rateDetail = new RateDetailDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { rateDetail.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdProductId)) { rateDetail.ProductId = reader.GetString(OrdProductId); }
	        	
	    	if (!reader.IsDBNull(OrdStar1)) { rateDetail.Star1 = reader.GetInt32(OrdStar1); }
	        	
	    	if (!reader.IsDBNull(OrdStar2)) { rateDetail.Star2 = reader.GetInt32(OrdStar2); }
	        	
	    	if (!reader.IsDBNull(OrdStar3)) { rateDetail.Star3 = reader.GetInt32(OrdStar3); }
	        	
	    	if (!reader.IsDBNull(OrdStar4)) { rateDetail.Star4 = reader.GetInt32(OrdStar4); }
	        	
	    	if (!reader.IsDBNull(OrdStar5)) { rateDetail.Star5 = reader.GetInt32(OrdStar5); }
	        	
	    	if (!reader.IsDBNull(OrdTotalRate)) { rateDetail.TotalRate = reader.GetInt32(OrdTotalRate); }
	        	
	    	if (!reader.IsDBNull(OrdAverageRate)) { rateDetail.AverageRate = reader.GetDouble(OrdAverageRate); }
	        			
			rateDetail.IsNew = false;
			
			return rateDetail;
		}
	}
	
		
    public class DTOParserRole : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdRoleName;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdRoleName = reader.GetOrdinal("RoleName");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			RoleDto role = new RoleDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { role.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdRoleName)) { role.RoleName = reader.GetString(OrdRoleName); }
	        			
			role.IsNew = false;
			
			return role;
		}
	}
	
		
    public class DTOParserSeason : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdSeasonName;
		
		public int OrdOrdering;
		
		public int OrdDescription;
		
		public int OrdActive;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdSeasonName = reader.GetOrdinal("SeasonName");
	        	
	    	OrdOrdering = reader.GetOrdinal("Ordering");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			SeasonDto season = new SeasonDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { season.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdSeasonName)) { season.SeasonName = reader.GetString(OrdSeasonName); }
	        	
	    	if (!reader.IsDBNull(OrdOrdering)) { season.Ordering = reader.GetInt32(OrdOrdering); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { season.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { season.Active = reader.GetString(OrdActive); }
	        			
			season.IsNew = false;
			
			return season;
		}
	}
	
		
    public class DTOParserSetting : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdName;
		
		public int OrdValue;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdValue = reader.GetOrdinal("Value");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			SettingDto setting = new SettingDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { setting.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { setting.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdValue)) { setting.Value = reader.GetString(OrdValue); }
	        			
			setting.IsNew = false;
			
			return setting;
		}
	}
	
		
    public class DTOParserSiteMap : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdSiteMapName;
		
		public int OrdSiteMapCaption;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdSiteMapName = reader.GetOrdinal("SiteMapName");
	        	
	    	OrdSiteMapCaption = reader.GetOrdinal("SiteMapCaption");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			SiteMapDto siteMap = new SiteMapDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { siteMap.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdSiteMapName)) { siteMap.SiteMapName = reader.GetString(OrdSiteMapName); }
	        	
	    	if (!reader.IsDBNull(OrdSiteMapCaption)) { siteMap.SiteMapCaption = reader.GetString(OrdSiteMapCaption); }
	        			
			siteMap.IsNew = false;
			
			return siteMap;
		}
	}
	
		
    public class DTOParserSize : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdSizeName;
		
		public int OrdCreateDate;
		
		public int OrdActive;
		
		public int OrdCode;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdSizeName = reader.GetOrdinal("SizeName");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        	
	    	OrdCode = reader.GetOrdinal("Code");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			SizeDto size = new SizeDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { size.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdSizeName)) { size.SizeName = reader.GetString(OrdSizeName); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { size.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { size.Active = reader.GetBoolean(OrdActive); }
	        	
	    	if (!reader.IsDBNull(OrdCode)) { size.Code = reader.GetString(OrdCode); }
	        			
			size.IsNew = false;
			
			return size;
		}
	}
	
		
    public class DTOParserSubCategoryTemplate : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdProductCateTempMappingId;
		
		public int OrdDescription;
		
		public int OrdTempContent;
		
		public int OrdDisplayOrder;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdProductCateTempMappingId = reader.GetOrdinal("ProductCateTempMappingId");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdTempContent = reader.GetOrdinal("TempContent");
	        	
	    	OrdDisplayOrder = reader.GetOrdinal("DisplayOrder");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			SubCategoryTemplateDto subCategoryTemplate = new SubCategoryTemplateDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { subCategoryTemplate.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdProductCateTempMappingId)) { subCategoryTemplate.ProductCateTempMappingId = reader.GetInt32(OrdProductCateTempMappingId); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { subCategoryTemplate.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdTempContent)) { subCategoryTemplate.TempContent = reader.GetString(OrdTempContent); }
	        	
	    	if (!reader.IsDBNull(OrdDisplayOrder)) { subCategoryTemplate.DisplayOrder = reader.GetInt32(OrdDisplayOrder); }
	        			
			subCategoryTemplate.IsNew = false;
			
			return subCategoryTemplate;
		}
	}
	
		
    public class DTOParserTag : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdTagName;
		
		public int OrdType;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdTagName = reader.GetOrdinal("TagName");
	        	
	    	OrdType = reader.GetOrdinal("Type");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			TagDto tag = new TagDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { tag.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdTagName)) { tag.TagName = reader.GetString(OrdTagName); }
	        	
	    	if (!reader.IsDBNull(OrdType)) { tag.Type = reader.GetString(OrdType); }
	        			
			tag.IsNew = false;
			
			return tag;
		}
	}
	
		
    public class DTOParserTagMap : DTOParser
    {			
		
		public int OrdMapId;
		
		public int OrdTagId;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdMapId = reader.GetOrdinal("MapId");
	        	
	    	OrdTagId = reader.GetOrdinal("TagId");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			TagMapDto tagMap = new TagMapDto();
			
				
	    	if (!reader.IsDBNull(OrdMapId)) { tagMap.MapId = reader.GetString(OrdMapId); }
	        	
	    	if (!reader.IsDBNull(OrdTagId)) { tagMap.TagId = reader.GetString(OrdTagId); }
	        			
			tagMap.IsNew = false;
			
			return tagMap;
		}
	}
	
		
    public class DTOParserTemplate : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdDescription;
		
		public int OrdTempContent;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdTempContent = reader.GetOrdinal("TempContent");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			TemplateDto template = new TemplateDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { template.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { template.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdTempContent)) { template.TempContent = reader.GetString(OrdTempContent); }
	        			
			template.IsNew = false;
			
			return template;
		}
	}
	
		
    public class DTOParserUser : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdUserName;
		
		public int OrdPassword;
		
		public int OrdFullName;
		
		public int OrdMobile;
		
		public int OrdEmail;
		
		public int OrdAddress;
		
		public int OrdCreateDate;
		
		public int OrdActive;
		
		public int OrdPasswordSalt;
		
		public int OrdRoleId;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdUserName = reader.GetOrdinal("UserName");
	        	
	    	OrdPassword = reader.GetOrdinal("Password");
	        	
	    	OrdFullName = reader.GetOrdinal("FullName");
	        	
	    	OrdMobile = reader.GetOrdinal("Mobile");
	        	
	    	OrdEmail = reader.GetOrdinal("Email");
	        	
	    	OrdAddress = reader.GetOrdinal("Address");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        	
	    	OrdPasswordSalt = reader.GetOrdinal("PasswordSalt");
	        	
	    	OrdRoleId = reader.GetOrdinal("RoleId");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			UserDto user = new UserDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { user.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdUserName)) { user.UserName = reader.GetString(OrdUserName); }
	        	
	    	if (!reader.IsDBNull(OrdPassword)) { user.Password = reader.GetString(OrdPassword); }
	        	
	    	if (!reader.IsDBNull(OrdFullName)) { user.FullName = reader.GetString(OrdFullName); }
	        	
	    	if (!reader.IsDBNull(OrdMobile)) { user.Mobile = reader.GetString(OrdMobile); }
	        	
	    	if (!reader.IsDBNull(OrdEmail)) { user.Email = reader.GetString(OrdEmail); }
	        	
	    	if (!reader.IsDBNull(OrdAddress)) { user.Address = reader.GetString(OrdAddress); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { user.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { user.Active = reader.GetString(OrdActive); }
	        	
	    	if (!reader.IsDBNull(OrdPasswordSalt)) { user.PasswordSalt = reader.GetString(OrdPasswordSalt); }
	        	
	    	if (!reader.IsDBNull(OrdRoleId)) { user.RoleId = reader.GetInt32(OrdRoleId); }
	        			
			user.IsNew = false;
			
			return user;
		}
	}
	
		
    public class DTOParserUserRole : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdRoleId;
		
		public int OrdSiteMapId;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdRoleId = reader.GetOrdinal("RoleId");
	        	
	    	OrdSiteMapId = reader.GetOrdinal("SiteMapId");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			UserRoleDto userRole = new UserRoleDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { userRole.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdRoleId)) { userRole.RoleId = reader.GetInt32(OrdRoleId); }
	        	
	    	if (!reader.IsDBNull(OrdSiteMapId)) { userRole.SiteMapId = reader.GetInt32(OrdSiteMapId); }
	        			
			userRole.IsNew = false;
			
			return userRole;
		}
	}
	
		
    public class DTOParserWebInfo : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdWebTitle;
		
		public int OrdMetaDescription;
		
		public int OrdMetaKeyword;
		
		public int OrdLogoPath;
		
		public int OrdLogoLink;
		
		public int OrdIntro;
		
		public int OrdContactInfo;
		
		public int OrdFooterAddress;
		
		public int OrdCategoryFooter;
		
		public int OrdCreateDate;
		
		public int OrdUpdateDate;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdWebTitle = reader.GetOrdinal("WebTitle");
	        	
	    	OrdMetaDescription = reader.GetOrdinal("MetaDescription");
	        	
	    	OrdMetaKeyword = reader.GetOrdinal("MetaKeyword");
	        	
	    	OrdLogoPath = reader.GetOrdinal("LogoPath");
	        	
	    	OrdLogoLink = reader.GetOrdinal("LogoLink");
	        	
	    	OrdIntro = reader.GetOrdinal("Intro");
	        	
	    	OrdContactInfo = reader.GetOrdinal("ContactInfo");
	        	
	    	OrdFooterAddress = reader.GetOrdinal("FooterAddress");
	        	
	    	OrdCategoryFooter = reader.GetOrdinal("CategoryFooter");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdUpdateDate = reader.GetOrdinal("UpdateDate");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			WebInfoDto webInfo = new WebInfoDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { webInfo.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdWebTitle)) { webInfo.WebTitle = reader.GetString(OrdWebTitle); }
	        	
	    	if (!reader.IsDBNull(OrdMetaDescription)) { webInfo.MetaDescription = reader.GetString(OrdMetaDescription); }
	        	
	    	if (!reader.IsDBNull(OrdMetaKeyword)) { webInfo.MetaKeyword = reader.GetString(OrdMetaKeyword); }
	        	
	    	if (!reader.IsDBNull(OrdLogoPath)) { webInfo.LogoPath = reader.GetString(OrdLogoPath); }
	        	
	    	if (!reader.IsDBNull(OrdLogoLink)) { webInfo.LogoLink = reader.GetString(OrdLogoLink); }
	        	
	    	if (!reader.IsDBNull(OrdIntro)) { webInfo.Intro = reader.GetString(OrdIntro); }
	        	
	    	if (!reader.IsDBNull(OrdContactInfo)) { webInfo.ContactInfo = reader.GetString(OrdContactInfo); }
	        	
	    	if (!reader.IsDBNull(OrdFooterAddress)) { webInfo.FooterAddress = reader.GetString(OrdFooterAddress); }
	        	
	    	if (!reader.IsDBNull(OrdCategoryFooter)) { webInfo.CategoryFooter = reader.GetString(OrdCategoryFooter); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { webInfo.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdUpdateDate)) { webInfo.UpdateDate = reader.GetDateTime(OrdUpdateDate); }
	        			
			webInfo.IsNew = false;
			
			return webInfo;
		}
	}
	

		
    public class DTOParserColorList : DTOParser
    {			
		
		public int OrdSTT;
		
		public int OrdId;
		
		public int OrdName;
		
		public int OrdCode;
		
		public int OrdCreateDate;
		
		public int OrdActive;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdSTT = reader.GetOrdinal("STT");
	        	
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdCode = reader.GetOrdinal("Code");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ColorListDto dTOParserColorList = new ColorListDto();
			
				
	    	if (!reader.IsDBNull(OrdSTT)) { dTOParserColorList.STT = reader.GetInt32(OrdSTT); }
	        	
	    	if (!reader.IsDBNull(OrdId)) { dTOParserColorList.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserColorList.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdCode)) { dTOParserColorList.Code = reader.GetString(OrdCode); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { dTOParserColorList.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { dTOParserColorList.Active = reader.GetBoolean(OrdActive); }
	        			
			dTOParserColorList.IsNew = false;
			
			return dTOParserColorList;
		}
	}
	
		
    public class DTOParserCustomerPaging : DTOParser
    {			
		
		public int OrdSTT;
		
		public int OrdId;
		
		public int OrdPassword;
		
		public int OrdPasswordSalt;
		
		public int OrdFullName;
		
		public int OrdEmail;
		
		public int OrdBirthday;
		
		public int OrdGender;
		
		public int OrdAddress;
		
		public int OrdTelephone;
		
		public int OrdMobilephone;
		
		public int OrdFax;
		
		public int OrdCompanyName;
		
		public int OrdCompanyAddress;
		
		public int OrdCompanyPhone;
		
		public int OrdProvinceId;
		
		public int OrdProvinceName;
		
		public int OrdDistrictId;
		
		public int OrdDistrictName;
		
		public int OrdCountryId;
		
		public int OrdActivateCode;
		
		public int OrdAvatarPath;
		
		public int OrdEmailStatus;
		
		public int OrdActive;
		
		public int OrdCreateDate;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdSTT = reader.GetOrdinal("STT");
	        	
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdPassword = reader.GetOrdinal("Password");
	        	
	    	OrdPasswordSalt = reader.GetOrdinal("PasswordSalt");
	        	
	    	OrdFullName = reader.GetOrdinal("FullName");
	        	
	    	OrdEmail = reader.GetOrdinal("Email");
	        	
	    	OrdBirthday = reader.GetOrdinal("Birthday");
	        	
	    	OrdGender = reader.GetOrdinal("Gender");
	        	
	    	OrdAddress = reader.GetOrdinal("Address");
	        	
	    	OrdTelephone = reader.GetOrdinal("Telephone");
	        	
	    	OrdMobilephone = reader.GetOrdinal("Mobilephone");
	        	
	    	OrdFax = reader.GetOrdinal("Fax");
	        	
	    	OrdCompanyName = reader.GetOrdinal("CompanyName");
	        	
	    	OrdCompanyAddress = reader.GetOrdinal("CompanyAddress");
	        	
	    	OrdCompanyPhone = reader.GetOrdinal("CompanyPhone");
	        	
	    	OrdProvinceId = reader.GetOrdinal("ProvinceId");
	        	
	    	OrdProvinceName = reader.GetOrdinal("ProvinceName");
	        	
	    	OrdDistrictId = reader.GetOrdinal("DistrictId");
	        	
	    	OrdDistrictName = reader.GetOrdinal("DistrictName");
	        	
	    	OrdCountryId = reader.GetOrdinal("CountryId");
	        	
	    	OrdActivateCode = reader.GetOrdinal("ActivateCode");
	        	
	    	OrdAvatarPath = reader.GetOrdinal("AvatarPath");
	        	
	    	OrdEmailStatus = reader.GetOrdinal("EmailStatus");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			CustomerPagingDto dTOParserCustomerPaging = new CustomerPagingDto();
			
				
	    	if (!reader.IsDBNull(OrdSTT)) { dTOParserCustomerPaging.STT = reader.GetInt32(OrdSTT); }
	        	
	    	if (!reader.IsDBNull(OrdId)) { dTOParserCustomerPaging.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdPassword)) { dTOParserCustomerPaging.Password = reader.GetString(OrdPassword); }
	        	
	    	if (!reader.IsDBNull(OrdPasswordSalt)) { dTOParserCustomerPaging.PasswordSalt = reader.GetString(OrdPasswordSalt); }
	        	
	    	if (!reader.IsDBNull(OrdFullName)) { dTOParserCustomerPaging.FullName = reader.GetString(OrdFullName); }
	        	
	    	if (!reader.IsDBNull(OrdEmail)) { dTOParserCustomerPaging.Email = reader.GetString(OrdEmail); }
	        	
	    	if (!reader.IsDBNull(OrdBirthday)) { dTOParserCustomerPaging.Birthday = reader.GetDateTime(OrdBirthday); }
	        	
	    	if (!reader.IsDBNull(OrdGender)) { dTOParserCustomerPaging.Gender = reader.GetString(OrdGender); }
	        	
	    	if (!reader.IsDBNull(OrdAddress)) { dTOParserCustomerPaging.Address = reader.GetString(OrdAddress); }
	        	
	    	if (!reader.IsDBNull(OrdTelephone)) { dTOParserCustomerPaging.Telephone = reader.GetString(OrdTelephone); }
	        	
	    	if (!reader.IsDBNull(OrdMobilephone)) { dTOParserCustomerPaging.Mobilephone = reader.GetString(OrdMobilephone); }
	        	
	    	if (!reader.IsDBNull(OrdFax)) { dTOParserCustomerPaging.Fax = reader.GetString(OrdFax); }
	        	
	    	if (!reader.IsDBNull(OrdCompanyName)) { dTOParserCustomerPaging.CompanyName = reader.GetString(OrdCompanyName); }
	        	
	    	if (!reader.IsDBNull(OrdCompanyAddress)) { dTOParserCustomerPaging.CompanyAddress = reader.GetString(OrdCompanyAddress); }
	        	
	    	if (!reader.IsDBNull(OrdCompanyPhone)) { dTOParserCustomerPaging.CompanyPhone = reader.GetString(OrdCompanyPhone); }
	        	
	    	if (!reader.IsDBNull(OrdProvinceId)) { dTOParserCustomerPaging.ProvinceId = reader.GetInt32(OrdProvinceId); }
	        	
	    	if (!reader.IsDBNull(OrdProvinceName)) { dTOParserCustomerPaging.ProvinceName = reader.GetString(OrdProvinceName); }
	        	
	    	if (!reader.IsDBNull(OrdDistrictId)) { dTOParserCustomerPaging.DistrictId = reader.GetInt32(OrdDistrictId); }
	        	
	    	if (!reader.IsDBNull(OrdDistrictName)) { dTOParserCustomerPaging.DistrictName = reader.GetString(OrdDistrictName); }
	        	
	    	if (!reader.IsDBNull(OrdCountryId)) { dTOParserCustomerPaging.CountryId = reader.GetInt32(OrdCountryId); }
	        	
	    	if (!reader.IsDBNull(OrdActivateCode)) { dTOParserCustomerPaging.ActivateCode = reader.GetString(OrdActivateCode); }
	        	
	    	if (!reader.IsDBNull(OrdAvatarPath)) { dTOParserCustomerPaging.AvatarPath = reader.GetString(OrdAvatarPath); }
	        	
	    	if (!reader.IsDBNull(OrdEmailStatus)) { dTOParserCustomerPaging.EmailStatus = reader.GetBoolean(OrdEmailStatus); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { dTOParserCustomerPaging.Active = reader.GetString(OrdActive); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { dTOParserCustomerPaging.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        			
			dTOParserCustomerPaging.IsNew = false;
			
			return dTOParserCustomerPaging;
		}
	}
	
		
    public class DTOParserGoldenTimeProductTopList : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdCampaintId;
		
		public int OrdPromotionUnit;
		
		public int OrdPriceUnit;
		
		public int OrdViewTime;
		
		public int OrdIsHot;
		
		public int OrdTimeShow;
		
		public int OrdBought;
		
		public int OrdActive;
		
		public int OrdBarcode;
		
		public int OrdName;
		
		public int OrdPrice;
		
		public int OrdPromotionPercent;
		
		public int OrdProductId;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdCampaintId = reader.GetOrdinal("CampaintId");
	        	
	    	OrdPromotionUnit = reader.GetOrdinal("PromotionUnit");
	        	
	    	OrdPriceUnit = reader.GetOrdinal("PriceUnit");
	        	
	    	OrdViewTime = reader.GetOrdinal("ViewTime");
	        	
	    	OrdIsHot = reader.GetOrdinal("IsHot");
	        	
	    	OrdTimeShow = reader.GetOrdinal("TimeShow");
	        	
	    	OrdBought = reader.GetOrdinal("Bought");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        	
	    	OrdBarcode = reader.GetOrdinal("Barcode");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdPrice = reader.GetOrdinal("Price");
	        	
	    	OrdPromotionPercent = reader.GetOrdinal("PromotionPercent");
	        	
	    	OrdProductId = reader.GetOrdinal("ProductId");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			GoldenTimeProductTopListDto dTOParserGoldenTimeProductTopList = new GoldenTimeProductTopListDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { dTOParserGoldenTimeProductTopList.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdCampaintId)) { dTOParserGoldenTimeProductTopList.CampaintId = reader.GetString(OrdCampaintId); }
	        	
	    	if (!reader.IsDBNull(OrdPromotionUnit)) { dTOParserGoldenTimeProductTopList.PromotionUnit = reader.GetInt32(OrdPromotionUnit); }
	        	
	    	if (!reader.IsDBNull(OrdPriceUnit)) { dTOParserGoldenTimeProductTopList.PriceUnit = reader.GetDecimal(OrdPriceUnit); }
	        	
	    	if (!reader.IsDBNull(OrdViewTime)) { dTOParserGoldenTimeProductTopList.ViewTime = reader.GetInt32(OrdViewTime); }
	        	
	    	if (!reader.IsDBNull(OrdIsHot)) { dTOParserGoldenTimeProductTopList.IsHot = reader.GetBoolean(OrdIsHot); }
	        	
	    	if (!reader.IsDBNull(OrdTimeShow)) { dTOParserGoldenTimeProductTopList.TimeShow = reader.GetDateTime(OrdTimeShow); }
	        	
	    	if (!reader.IsDBNull(OrdBought)) { dTOParserGoldenTimeProductTopList.Bought = reader.GetBoolean(OrdBought); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { dTOParserGoldenTimeProductTopList.Active = reader.GetBoolean(OrdActive); }
	        	
	    	if (!reader.IsDBNull(OrdBarcode)) { dTOParserGoldenTimeProductTopList.Barcode = reader.GetString(OrdBarcode); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserGoldenTimeProductTopList.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdPrice)) { dTOParserGoldenTimeProductTopList.Price = reader.GetDecimal(OrdPrice); }
	        	
	    	if (!reader.IsDBNull(OrdPromotionPercent)) { dTOParserGoldenTimeProductTopList.PromotionPercent = reader.GetInt32(OrdPromotionPercent); }
	        	
	    	if (!reader.IsDBNull(OrdProductId)) { dTOParserGoldenTimeProductTopList.ProductId = reader.GetString(OrdProductId); }
	        			
			dTOParserGoldenTimeProductTopList.IsNew = false;
			
			return dTOParserGoldenTimeProductTopList;
		}
	}
	
		
    public class DTOParserNewsCategoryInfo : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdCateName;
		
		public int OrdMetaTitle;
		
		public int OrdMetaKeyword;
		
		public int OrdMetaDescription;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdCateName = reader.GetOrdinal("CateName");
	        	
	    	OrdMetaTitle = reader.GetOrdinal("MetaTitle");
	        	
	    	OrdMetaKeyword = reader.GetOrdinal("MetaKeyword");
	        	
	    	OrdMetaDescription = reader.GetOrdinal("MetaDescription");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			NewsCategoryInfoDto dTOParserNewsCategoryInfo = new NewsCategoryInfoDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { dTOParserNewsCategoryInfo.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdCateName)) { dTOParserNewsCategoryInfo.CateName = reader.GetString(OrdCateName); }
	        	
	    	if (!reader.IsDBNull(OrdMetaTitle)) { dTOParserNewsCategoryInfo.MetaTitle = reader.GetString(OrdMetaTitle); }
	        	
	    	if (!reader.IsDBNull(OrdMetaKeyword)) { dTOParserNewsCategoryInfo.MetaKeyword = reader.GetString(OrdMetaKeyword); }
	        	
	    	if (!reader.IsDBNull(OrdMetaDescription)) { dTOParserNewsCategoryInfo.MetaDescription = reader.GetString(OrdMetaDescription); }
	        			
			dTOParserNewsCategoryInfo.IsNew = false;
			
			return dTOParserNewsCategoryInfo;
		}
	}
	
		
    public class DTOParserNewsCategoryListAdmin : DTOParser
    {			
		
		public int OrdSTT;
		
		public int OrdId;
		
		public int OrdCateName;
		
		public int OrdParentId;
		
		public int OrdActive;
		
		public int OrdShowHome;
		
		public int OrdOrdering;
		
		public int OrdDepth;
		
		public int OrdType;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdSTT = reader.GetOrdinal("STT");
	        	
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdCateName = reader.GetOrdinal("CateName");
	        	
	    	OrdParentId = reader.GetOrdinal("ParentId");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        	
	    	OrdShowHome = reader.GetOrdinal("ShowHome");
	        	
	    	OrdOrdering = reader.GetOrdinal("Ordering");
	        	
	    	OrdDepth = reader.GetOrdinal("Depth");
	        	
	    	OrdType = reader.GetOrdinal("Type");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			NewsCategoryListAdminDto dTOParserNewsCategoryListAdmin = new NewsCategoryListAdminDto();
			
				
	    	if (!reader.IsDBNull(OrdSTT)) { dTOParserNewsCategoryListAdmin.STT = reader.GetInt32(OrdSTT); }
	        	
	    	if (!reader.IsDBNull(OrdId)) { dTOParserNewsCategoryListAdmin.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdCateName)) { dTOParserNewsCategoryListAdmin.CateName = reader.GetString(OrdCateName); }
	        	
	    	if (!reader.IsDBNull(OrdParentId)) { dTOParserNewsCategoryListAdmin.ParentId = reader.GetInt32(OrdParentId); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { dTOParserNewsCategoryListAdmin.Active = reader.GetBoolean(OrdActive); }
	        	
	    	if (!reader.IsDBNull(OrdShowHome)) { dTOParserNewsCategoryListAdmin.ShowHome = reader.GetBoolean(OrdShowHome); }
	        	
	    	if (!reader.IsDBNull(OrdOrdering)) { dTOParserNewsCategoryListAdmin.Ordering = reader.GetInt32(OrdOrdering); }
	        	
	    	if (!reader.IsDBNull(OrdDepth)) { dTOParserNewsCategoryListAdmin.Depth = reader.GetInt32(OrdDepth); }
	        	
	    	if (!reader.IsDBNull(OrdType)) { dTOParserNewsCategoryListAdmin.Type = reader.GetString(OrdType); }
	        			
			dTOParserNewsCategoryListAdmin.IsNew = false;
			
			return dTOParserNewsCategoryListAdmin;
		}
	}
	
		
    public class DTOParserNewsCategoryListMenu : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdCateName;
		
		public int OrdParentId;
		
		public int OrdDepth;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdCateName = reader.GetOrdinal("CateName");
	        	
	    	OrdParentId = reader.GetOrdinal("ParentId");
	        	
	    	OrdDepth = reader.GetOrdinal("Depth");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			NewsCategoryListMenuDto dTOParserNewsCategoryListMenu = new NewsCategoryListMenuDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { dTOParserNewsCategoryListMenu.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdCateName)) { dTOParserNewsCategoryListMenu.CateName = reader.GetString(OrdCateName); }
	        	
	    	if (!reader.IsDBNull(OrdParentId)) { dTOParserNewsCategoryListMenu.ParentId = reader.GetInt32(OrdParentId); }
	        	
	    	if (!reader.IsDBNull(OrdDepth)) { dTOParserNewsCategoryListMenu.Depth = reader.GetInt32(OrdDepth); }
	        			
			dTOParserNewsCategoryListMenu.IsNew = false;
			
			return dTOParserNewsCategoryListMenu;
		}
	}
	
		
    public class DTOParserNewsListAdmin : DTOParser
    {			
		
		public int OrdSTT;
		
		public int OrdId;
		
		public int OrdCategoryId;
		
		public int OrdTitle;
		
		public int OrdCreateDate;
		
		public int OrdImagePath;
		
		public int OrdHot;
		
		public int OrdActive;
		
		public int OrdCateName;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdSTT = reader.GetOrdinal("STT");
	        	
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdCategoryId = reader.GetOrdinal("CategoryId");
	        	
	    	OrdTitle = reader.GetOrdinal("Title");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        	
	    	OrdHot = reader.GetOrdinal("Hot");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        	
	    	OrdCateName = reader.GetOrdinal("CateName");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			NewsListAdminDto dTOParserNewsListAdmin = new NewsListAdminDto();
			
				
	    	if (!reader.IsDBNull(OrdSTT)) { dTOParserNewsListAdmin.STT = reader.GetInt32(OrdSTT); }
	        	
	    	if (!reader.IsDBNull(OrdId)) { dTOParserNewsListAdmin.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdCategoryId)) { dTOParserNewsListAdmin.CategoryId = reader.GetInt32(OrdCategoryId); }
	        	
	    	if (!reader.IsDBNull(OrdTitle)) { dTOParserNewsListAdmin.Title = reader.GetString(OrdTitle); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { dTOParserNewsListAdmin.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { dTOParserNewsListAdmin.ImagePath = reader.GetString(OrdImagePath); }
	        	
	    	if (!reader.IsDBNull(OrdHot)) { dTOParserNewsListAdmin.Hot = reader.GetBoolean(OrdHot); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { dTOParserNewsListAdmin.Active = reader.GetBoolean(OrdActive); }
	        	
	    	if (!reader.IsDBNull(OrdCateName)) { dTOParserNewsListAdmin.CateName = reader.GetString(OrdCateName); }
	        			
			dTOParserNewsListAdmin.IsNew = false;
			
			return dTOParserNewsListAdmin;
		}
	}
	
		
    public class DTOParserNewsListHome : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdTitle;
		
		public int OrdSummary;
		
		public int OrdCreateDate;
		
		public int OrdImagePath;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdTitle = reader.GetOrdinal("Title");
	        	
	    	OrdSummary = reader.GetOrdinal("Summary");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			NewsListHomeDto dTOParserNewsListHome = new NewsListHomeDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { dTOParserNewsListHome.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdTitle)) { dTOParserNewsListHome.Title = reader.GetString(OrdTitle); }
	        	
	    	if (!reader.IsDBNull(OrdSummary)) { dTOParserNewsListHome.Summary = reader.GetString(OrdSummary); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { dTOParserNewsListHome.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { dTOParserNewsListHome.ImagePath = reader.GetString(OrdImagePath); }
	        			
			dTOParserNewsListHome.IsNew = false;
			
			return dTOParserNewsListHome;
		}
	}
	
		
    public class DTOParserNewsListOld : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdTitle;
		
		public int OrdCreateDate;
		
		public int OrdIconNew;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdTitle = reader.GetOrdinal("Title");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdIconNew = reader.GetOrdinal("IconNew");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			NewsListOldDto dTOParserNewsListOld = new NewsListOldDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { dTOParserNewsListOld.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdTitle)) { dTOParserNewsListOld.Title = reader.GetString(OrdTitle); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { dTOParserNewsListOld.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdIconNew)) { dTOParserNewsListOld.IconNew = reader.GetBoolean(OrdIconNew); }
	        			
			dTOParserNewsListOld.IsNew = false;
			
			return dTOParserNewsListOld;
		}
	}
	
		
    public class DTOParserOrderDetailProduct : DTOParser
    {			
		
		public int OrdPrice;
		
		public int OrdQuantity;
		
		public int OrdProductId;
		
		public int OrdOrderId;
		
		public int OrdId;
		
		public int OrdBarcode;
		
		public int OrdName;
		
		public int OrdImagePath;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdPrice = reader.GetOrdinal("Price");
	        	
	    	OrdQuantity = reader.GetOrdinal("Quantity");
	        	
	    	OrdProductId = reader.GetOrdinal("ProductId");
	        	
	    	OrdOrderId = reader.GetOrdinal("OrderId");
	        	
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdBarcode = reader.GetOrdinal("Barcode");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			OrderDetailProductDto dTOParserOrderDetailProduct = new OrderDetailProductDto();
			
				
	    	if (!reader.IsDBNull(OrdPrice)) { dTOParserOrderDetailProduct.Price = reader.GetDecimal(OrdPrice); }
	        	
	    	if (!reader.IsDBNull(OrdQuantity)) { dTOParserOrderDetailProduct.Quantity = reader.GetInt32(OrdQuantity); }
	        	
	    	if (!reader.IsDBNull(OrdProductId)) { dTOParserOrderDetailProduct.ProductId = reader.GetString(OrdProductId); }
	        	
	    	if (!reader.IsDBNull(OrdOrderId)) { dTOParserOrderDetailProduct.OrderId = reader.GetString(OrdOrderId); }
	        	
	    	if (!reader.IsDBNull(OrdId)) { dTOParserOrderDetailProduct.Id = reader.GetInt64(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdBarcode)) { dTOParserOrderDetailProduct.Barcode = reader.GetString(OrdBarcode); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserOrderDetailProduct.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { dTOParserOrderDetailProduct.ImagePath = reader.GetString(OrdImagePath); }
	        			
			dTOParserOrderDetailProduct.IsNew = false;
			
			return dTOParserOrderDetailProduct;
		}
	}
	
		
    public class DTOParserOrderPaging : DTOParser
    {			
		
		public int OrdSTT;
		
		public int OrdOrderId;
		
		public int OrdCustomerId;
		
		public int OrdTotalMoney;
		
		public int OrdDiscount;
		
		public int OrdTransport;
		
		public int OrdPayment;
		
		public int OrdComment;
		
		public int OrdEmail;
		
		public int OrdTelephone;
		
		public int OrdMobilePhone;
		
		public int OrdAddress;
		
		public int OrdDistrictId;
		
		public int OrdDistrictName;
		
		public int OrdFullName;
		
		public int OrdProvinceId;
		
		public int OrdProvinceName;
		
		public int OrdEmailStatus;
		
		public int OrdGender;
		
		public int OrdBirthday;
		
		public int OrdReceiveDate;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdSTT = reader.GetOrdinal("STT");
	        	
	    	OrdOrderId = reader.GetOrdinal("OrderId");
	        	
	    	OrdCustomerId = reader.GetOrdinal("CustomerId");
	        	
	    	OrdTotalMoney = reader.GetOrdinal("TotalMoney");
	        	
	    	OrdDiscount = reader.GetOrdinal("Discount");
	        	
	    	OrdTransport = reader.GetOrdinal("Transport");
	        	
	    	OrdPayment = reader.GetOrdinal("Payment");
	        	
	    	OrdComment = reader.GetOrdinal("Comment");
	        	
	    	OrdEmail = reader.GetOrdinal("Email");
	        	
	    	OrdTelephone = reader.GetOrdinal("Telephone");
	        	
	    	OrdMobilePhone = reader.GetOrdinal("MobilePhone");
	        	
	    	OrdAddress = reader.GetOrdinal("Address");
	        	
	    	OrdDistrictId = reader.GetOrdinal("DistrictId");
	        	
	    	OrdDistrictName = reader.GetOrdinal("DistrictName");
	        	
	    	OrdFullName = reader.GetOrdinal("FullName");
	        	
	    	OrdProvinceId = reader.GetOrdinal("ProvinceId");
	        	
	    	OrdProvinceName = reader.GetOrdinal("ProvinceName");
	        	
	    	OrdEmailStatus = reader.GetOrdinal("EmailStatus");
	        	
	    	OrdGender = reader.GetOrdinal("Gender");
	        	
	    	OrdBirthday = reader.GetOrdinal("Birthday");
	        	
	    	OrdReceiveDate = reader.GetOrdinal("ReceiveDate");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			OrderPagingDto dTOParserOrderPaging = new OrderPagingDto();
			
				
	    	if (!reader.IsDBNull(OrdSTT)) { dTOParserOrderPaging.STT = reader.GetInt32(OrdSTT); }
	        	
	    	if (!reader.IsDBNull(OrdOrderId)) { dTOParserOrderPaging.OrderId = reader.GetString(OrdOrderId); }
	        	
	    	if (!reader.IsDBNull(OrdCustomerId)) { dTOParserOrderPaging.CustomerId = reader.GetString(OrdCustomerId); }
	        	
	    	if (!reader.IsDBNull(OrdTotalMoney)) { dTOParserOrderPaging.TotalMoney = reader.GetDecimal(OrdTotalMoney); }
	        	
	    	if (!reader.IsDBNull(OrdDiscount)) { dTOParserOrderPaging.Discount = reader.GetDecimal(OrdDiscount); }
	        	
	    	if (!reader.IsDBNull(OrdTransport)) { dTOParserOrderPaging.Transport = reader.GetString(OrdTransport); }
	        	
	    	if (!reader.IsDBNull(OrdPayment)) { dTOParserOrderPaging.Payment = reader.GetString(OrdPayment); }
	        	
	    	if (!reader.IsDBNull(OrdComment)) { dTOParserOrderPaging.Comment = reader.GetString(OrdComment); }
	        	
	    	if (!reader.IsDBNull(OrdEmail)) { dTOParserOrderPaging.Email = reader.GetString(OrdEmail); }
	        	
	    	if (!reader.IsDBNull(OrdTelephone)) { dTOParserOrderPaging.Telephone = reader.GetString(OrdTelephone); }
	        	
	    	if (!reader.IsDBNull(OrdMobilePhone)) { dTOParserOrderPaging.MobilePhone = reader.GetString(OrdMobilePhone); }
	        	
	    	if (!reader.IsDBNull(OrdAddress)) { dTOParserOrderPaging.Address = reader.GetString(OrdAddress); }
	        	
	    	if (!reader.IsDBNull(OrdDistrictId)) { dTOParserOrderPaging.DistrictId = reader.GetString(OrdDistrictId); }
	        	
	    	if (!reader.IsDBNull(OrdDistrictName)) { dTOParserOrderPaging.DistrictName = reader.GetString(OrdDistrictName); }
	        	
	    	if (!reader.IsDBNull(OrdFullName)) { dTOParserOrderPaging.FullName = reader.GetString(OrdFullName); }
	        	
	    	if (!reader.IsDBNull(OrdProvinceId)) { dTOParserOrderPaging.ProvinceId = reader.GetString(OrdProvinceId); }
	        	
	    	if (!reader.IsDBNull(OrdProvinceName)) { dTOParserOrderPaging.ProvinceName = reader.GetString(OrdProvinceName); }
	        	
	    	if (!reader.IsDBNull(OrdEmailStatus)) { dTOParserOrderPaging.EmailStatus = reader.GetBoolean(OrdEmailStatus); }
	        	
	    	if (!reader.IsDBNull(OrdGender)) { dTOParserOrderPaging.Gender = reader.GetString(OrdGender); }
	        	
	    	if (!reader.IsDBNull(OrdBirthday)) { dTOParserOrderPaging.Birthday = reader.GetDateTime(OrdBirthday); }
	        	
	    	if (!reader.IsDBNull(OrdReceiveDate)) { dTOParserOrderPaging.ReceiveDate = reader.GetDateTime(OrdReceiveDate); }
	        			
			dTOParserOrderPaging.IsNew = false;
			
			return dTOParserOrderPaging;
		}
	}
	
		
    public class DTOParserProductByCateTopList : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdCategoryId;
		
		public int OrdName;
		
		public int OrdPrice;
		
		public int OrdUsePercentage;
		
		public int OrdDiscountPercentage;
		
		public int OrdDiscountAmount;
		
		public int OrdPromotionPrice;
		
		public int OrdGiftId;
		
		public int OrdQuantity;
		
		public int OrdProductStatus;
		
		public int OrdStockStatus;
		
		public int OrdShow;
		
		public int OrdCreateDate;
		
		public int OrdImagePath;
		
		public int OrdProviderName;
		
		public int OrdBreadCrumb;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdCategoryId = reader.GetOrdinal("CategoryId");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdPrice = reader.GetOrdinal("Price");
	        	
	    	OrdUsePercentage = reader.GetOrdinal("UsePercentage");
	        	
	    	OrdDiscountPercentage = reader.GetOrdinal("DiscountPercentage");
	        	
	    	OrdDiscountAmount = reader.GetOrdinal("DiscountAmount");
	        	
	    	OrdPromotionPrice = reader.GetOrdinal("PromotionPrice");
	        	
	    	OrdGiftId = reader.GetOrdinal("GiftId");
	        	
	    	OrdQuantity = reader.GetOrdinal("Quantity");
	        	
	    	OrdProductStatus = reader.GetOrdinal("ProductStatus");
	        	
	    	OrdStockStatus = reader.GetOrdinal("StockStatus");
	        	
	    	OrdShow = reader.GetOrdinal("Show");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        	
	    	OrdProviderName = reader.GetOrdinal("ProviderName");
	        	
	    	OrdBreadCrumb = reader.GetOrdinal("BreadCrumb");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductByCateTopListDto dTOParserProductByCateTopList = new ProductByCateTopListDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { dTOParserProductByCateTopList.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdCategoryId)) { dTOParserProductByCateTopList.CategoryId = reader.GetString(OrdCategoryId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserProductByCateTopList.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdPrice)) { dTOParserProductByCateTopList.Price = reader.GetDecimal(OrdPrice); }
	        	
	    	if (!reader.IsDBNull(OrdUsePercentage)) { dTOParserProductByCateTopList.UsePercentage = reader.GetInt32(OrdUsePercentage); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountPercentage)) { dTOParserProductByCateTopList.DiscountPercentage = reader.GetDecimal(OrdDiscountPercentage); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountAmount)) { dTOParserProductByCateTopList.DiscountAmount = reader.GetDecimal(OrdDiscountAmount); }
	        	
	    	if (!reader.IsDBNull(OrdPromotionPrice)) { dTOParserProductByCateTopList.PromotionPrice = reader.GetDecimal(OrdPromotionPrice); }
	        	
	    	if (!reader.IsDBNull(OrdGiftId)) { dTOParserProductByCateTopList.GiftId = reader.GetInt32(OrdGiftId); }
	        	
	    	if (!reader.IsDBNull(OrdQuantity)) { dTOParserProductByCateTopList.Quantity = reader.GetInt32(OrdQuantity); }
	        	
	    	if (!reader.IsDBNull(OrdProductStatus)) { dTOParserProductByCateTopList.ProductStatus = reader.GetString(OrdProductStatus); }
	        	
	    	if (!reader.IsDBNull(OrdStockStatus)) { dTOParserProductByCateTopList.StockStatus = reader.GetBoolean(OrdStockStatus); }
	        	
	    	if (!reader.IsDBNull(OrdShow)) { dTOParserProductByCateTopList.Show = reader.GetBoolean(OrdShow); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { dTOParserProductByCateTopList.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { dTOParserProductByCateTopList.ImagePath = reader.GetString(OrdImagePath); }
	        	
	    	if (!reader.IsDBNull(OrdProviderName)) { dTOParserProductByCateTopList.ProviderName = reader.GetString(OrdProviderName); }
	        	
	    	if (!reader.IsDBNull(OrdBreadCrumb)) { dTOParserProductByCateTopList.BreadCrumb = reader.GetString(OrdBreadCrumb); }
	        			
			dTOParserProductByCateTopList.IsNew = false;
			
			return dTOParserProductByCateTopList;
		}
	}
	
		
    public class DTOParserProductByCateTopListPaging : DTOParser
    {			
		
		public int OrdSTT;
		
		public int OrdId;
		
		public int OrdCategoryId;
		
		public int OrdName;
		
		public int OrdPrice;
		
		public int OrdQuantity;
		
		public int OrdUsePercentage;
		
		public int OrdDiscountPercentage;
		
		public int OrdDiscountAmount;
		
		public int OrdPromotionPrice;
		
		public int OrdGiftId;
		
		public int OrdProductStatus;
		
		public int OrdStockStatus;
		
		public int OrdShow;
		
		public int OrdCustomInfoFirst;
		
		public int OrdCustomInfoSecond;
		
		public int OrdCustomInfoThird;
		
		public int OrdCreateDate;
		
		public int OrdImagePath;
		
		public int OrdProviderName;
		
		public int OrdBreadCrumb;
		
		public int OrdTotalView;
		
		public int OrdBarcode;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdSTT = reader.GetOrdinal("STT");
	        	
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdCategoryId = reader.GetOrdinal("CategoryId");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdPrice = reader.GetOrdinal("Price");
	        	
	    	OrdQuantity = reader.GetOrdinal("Quantity");
	        	
	    	OrdUsePercentage = reader.GetOrdinal("UsePercentage");
	        	
	    	OrdDiscountPercentage = reader.GetOrdinal("DiscountPercentage");
	        	
	    	OrdDiscountAmount = reader.GetOrdinal("DiscountAmount");
	        	
	    	OrdPromotionPrice = reader.GetOrdinal("PromotionPrice");
	        	
	    	OrdGiftId = reader.GetOrdinal("GiftId");
	        	
	    	OrdProductStatus = reader.GetOrdinal("ProductStatus");
	        	
	    	OrdStockStatus = reader.GetOrdinal("StockStatus");
	        	
	    	OrdShow = reader.GetOrdinal("Show");
	        	
	    	OrdCustomInfoFirst = reader.GetOrdinal("CustomInfoFirst");
	        	
	    	OrdCustomInfoSecond = reader.GetOrdinal("CustomInfoSecond");
	        	
	    	OrdCustomInfoThird = reader.GetOrdinal("CustomInfoThird");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        	
	    	OrdProviderName = reader.GetOrdinal("ProviderName");
	        	
	    	OrdBreadCrumb = reader.GetOrdinal("BreadCrumb");
	        	
	    	OrdTotalView = reader.GetOrdinal("TotalView");
	        	
	    	OrdBarcode = reader.GetOrdinal("Barcode");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductByCateTopListPagingDto dTOParserProductByCateTopListPaging = new ProductByCateTopListPagingDto();
			
				
	    	if (!reader.IsDBNull(OrdSTT)) { dTOParserProductByCateTopListPaging.STT = reader.GetInt32(OrdSTT); }
	        	
	    	if (!reader.IsDBNull(OrdId)) { dTOParserProductByCateTopListPaging.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdCategoryId)) { dTOParserProductByCateTopListPaging.CategoryId = reader.GetString(OrdCategoryId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserProductByCateTopListPaging.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdPrice)) { dTOParserProductByCateTopListPaging.Price = reader.GetDecimal(OrdPrice); }
	        	
	    	if (!reader.IsDBNull(OrdQuantity)) { dTOParserProductByCateTopListPaging.Quantity = reader.GetInt32(OrdQuantity); }
	        	
	    	if (!reader.IsDBNull(OrdUsePercentage)) { dTOParserProductByCateTopListPaging.UsePercentage = reader.GetBoolean(OrdUsePercentage); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountPercentage)) { dTOParserProductByCateTopListPaging.DiscountPercentage = reader.GetDecimal(OrdDiscountPercentage); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountAmount)) { dTOParserProductByCateTopListPaging.DiscountAmount = reader.GetDecimal(OrdDiscountAmount); }
	        	
	    	if (!reader.IsDBNull(OrdPromotionPrice)) { dTOParserProductByCateTopListPaging.PromotionPrice = reader.GetDecimal(OrdPromotionPrice); }
	        	
	    	if (!reader.IsDBNull(OrdGiftId)) { dTOParserProductByCateTopListPaging.GiftId = reader.GetInt32(OrdGiftId); }
	        	
	    	if (!reader.IsDBNull(OrdProductStatus)) { dTOParserProductByCateTopListPaging.ProductStatus = reader.GetString(OrdProductStatus); }
	        	
	    	if (!reader.IsDBNull(OrdStockStatus)) { dTOParserProductByCateTopListPaging.StockStatus = reader.GetBoolean(OrdStockStatus); }
	        	
	    	if (!reader.IsDBNull(OrdShow)) { dTOParserProductByCateTopListPaging.Show = reader.GetBoolean(OrdShow); }
	        	
	    	if (!reader.IsDBNull(OrdCustomInfoFirst)) { dTOParserProductByCateTopListPaging.CustomInfoFirst = reader.GetString(OrdCustomInfoFirst); }
	        	
	    	if (!reader.IsDBNull(OrdCustomInfoSecond)) { dTOParserProductByCateTopListPaging.CustomInfoSecond = reader.GetString(OrdCustomInfoSecond); }
	        	
	    	if (!reader.IsDBNull(OrdCustomInfoThird)) { dTOParserProductByCateTopListPaging.CustomInfoThird = reader.GetString(OrdCustomInfoThird); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { dTOParserProductByCateTopListPaging.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { dTOParserProductByCateTopListPaging.ImagePath = reader.GetString(OrdImagePath); }
	        	
	    	if (!reader.IsDBNull(OrdProviderName)) { dTOParserProductByCateTopListPaging.ProviderName = reader.GetString(OrdProviderName); }
	        	
	    	if (!reader.IsDBNull(OrdBreadCrumb)) { dTOParserProductByCateTopListPaging.BreadCrumb = reader.GetString(OrdBreadCrumb); }
	        	
	    	if (!reader.IsDBNull(OrdTotalView)) { dTOParserProductByCateTopListPaging.TotalView = reader.GetInt32(OrdTotalView); }
	        	
	    	if (!reader.IsDBNull(OrdBarcode)) { dTOParserProductByCateTopListPaging.Barcode = reader.GetString(OrdBarcode); }
	        			
			dTOParserProductByCateTopListPaging.IsNew = false;
			
			return dTOParserProductByCateTopListPaging;
		}
	}
	
		
    public class DTOParserProductCategoryBannerAdminList : DTOParser
    {			
		
		public int OrdSTT;
		
		public int OrdId;
		
		public int OrdBannerName;
		
		public int OrdCategoryId;
		
		public int OrdCategoryName;
		
		public int OrdImagePath;
		
		public int OrdCreateDate;
		
		public int OrdBeginDate;
		
		public int OrdEndDate;
		
		public int OrdOrdering;
		
		public int OrdActive;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdSTT = reader.GetOrdinal("STT");
	        	
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdBannerName = reader.GetOrdinal("BannerName");
	        	
	    	OrdCategoryId = reader.GetOrdinal("CategoryId");
	        	
	    	OrdCategoryName = reader.GetOrdinal("CategoryName");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdBeginDate = reader.GetOrdinal("BeginDate");
	        	
	    	OrdEndDate = reader.GetOrdinal("EndDate");
	        	
	    	OrdOrdering = reader.GetOrdinal("Ordering");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductCategoryBannerAdminListDto dTOParserProductCategoryBannerAdminList = new ProductCategoryBannerAdminListDto();
			
				
	    	if (!reader.IsDBNull(OrdSTT)) { dTOParserProductCategoryBannerAdminList.STT = reader.GetInt32(OrdSTT); }
	        	
	    	if (!reader.IsDBNull(OrdId)) { dTOParserProductCategoryBannerAdminList.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdBannerName)) { dTOParserProductCategoryBannerAdminList.BannerName = reader.GetString(OrdBannerName); }
	        	
	    	if (!reader.IsDBNull(OrdCategoryId)) { dTOParserProductCategoryBannerAdminList.CategoryId = reader.GetString(OrdCategoryId); }
	        	
	    	if (!reader.IsDBNull(OrdCategoryName)) { dTOParserProductCategoryBannerAdminList.CategoryName = reader.GetString(OrdCategoryName); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { dTOParserProductCategoryBannerAdminList.ImagePath = reader.GetString(OrdImagePath); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { dTOParserProductCategoryBannerAdminList.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdBeginDate)) { dTOParserProductCategoryBannerAdminList.BeginDate = reader.GetDateTime(OrdBeginDate); }
	        	
	    	if (!reader.IsDBNull(OrdEndDate)) { dTOParserProductCategoryBannerAdminList.EndDate = reader.GetDateTime(OrdEndDate); }
	        	
	    	if (!reader.IsDBNull(OrdOrdering)) { dTOParserProductCategoryBannerAdminList.Ordering = reader.GetInt32(OrdOrdering); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { dTOParserProductCategoryBannerAdminList.Active = reader.GetBoolean(OrdActive); }
	        			
			dTOParserProductCategoryBannerAdminList.IsNew = false;
			
			return dTOParserProductCategoryBannerAdminList;
		}
	}
	
		
    public class DTOParserProductCategoryBannerHome : DTOParser
    {			
		
		public int OrdDescription;
		
		public int OrdImagePath;
		
		public int OrdUrl;
		
		public int OrdWidth;
		
		public int OrdHeight;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        	
	    	OrdUrl = reader.GetOrdinal("Url");
	        	
	    	OrdWidth = reader.GetOrdinal("Width");
	        	
	    	OrdHeight = reader.GetOrdinal("Height");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductCategoryBannerHomeDto dTOParserProductCategoryBannerHome = new ProductCategoryBannerHomeDto();
			
				
	    	if (!reader.IsDBNull(OrdDescription)) { dTOParserProductCategoryBannerHome.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { dTOParserProductCategoryBannerHome.ImagePath = reader.GetString(OrdImagePath); }
	        	
	    	if (!reader.IsDBNull(OrdUrl)) { dTOParserProductCategoryBannerHome.Url = reader.GetString(OrdUrl); }
	        	
	    	if (!reader.IsDBNull(OrdWidth)) { dTOParserProductCategoryBannerHome.Width = reader.GetInt32(OrdWidth); }
	        	
	    	if (!reader.IsDBNull(OrdHeight)) { dTOParserProductCategoryBannerHome.Height = reader.GetInt32(OrdHeight); }
	        			
			dTOParserProductCategoryBannerHome.IsNew = false;
			
			return dTOParserProductCategoryBannerHome;
		}
	}
	
		
    public class DTOParserProductCategoryBannerWidth : DTOParser
    {			
		
		public int OrdImagePath;
		
		public int OrdDescription;
		
		public int OrdUrl;
		
		public int OrdWidth;
		
		public int OrdHeight;
		
		public int OrdId;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdUrl = reader.GetOrdinal("Url");
	        	
	    	OrdWidth = reader.GetOrdinal("Width");
	        	
	    	OrdHeight = reader.GetOrdinal("Height");
	        	
	    	OrdId = reader.GetOrdinal("Id");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductCategoryBannerWidthDto dTOParserProductCategoryBannerWidth = new ProductCategoryBannerWidthDto();
			
				
	    	if (!reader.IsDBNull(OrdImagePath)) { dTOParserProductCategoryBannerWidth.ImagePath = reader.GetString(OrdImagePath); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { dTOParserProductCategoryBannerWidth.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdUrl)) { dTOParserProductCategoryBannerWidth.Url = reader.GetString(OrdUrl); }
	        	
	    	if (!reader.IsDBNull(OrdWidth)) { dTOParserProductCategoryBannerWidth.Width = reader.GetInt32(OrdWidth); }
	        	
	    	if (!reader.IsDBNull(OrdHeight)) { dTOParserProductCategoryBannerWidth.Height = reader.GetInt32(OrdHeight); }
	        	
	    	if (!reader.IsDBNull(OrdId)) { dTOParserProductCategoryBannerWidth.Id = reader.GetString(OrdId); }
	        			
			dTOParserProductCategoryBannerWidth.IsNew = false;
			
			return dTOParserProductCategoryBannerWidth;
		}
	}
	
		
    public class DTOParserProductCategoryByName : DTOParser
    {			
		
		public int OrdName;
		
		public int OrdOrdering;
		
		public int OrdId;
		
		public int OrdCampainId;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdOrdering = reader.GetOrdinal("Ordering");
	        	
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdCampainId = reader.GetOrdinal("CampainId");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductCategoryByNameDto dTOParserProductCategoryByName = new ProductCategoryByNameDto();
			
				
	    	if (!reader.IsDBNull(OrdName)) { dTOParserProductCategoryByName.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdOrdering)) { dTOParserProductCategoryByName.Ordering = reader.GetInt32(OrdOrdering); }
	        	
	    	if (!reader.IsDBNull(OrdId)) { dTOParserProductCategoryByName.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdCampainId)) { dTOParserProductCategoryByName.CampainId = reader.GetString(OrdCampainId); }
	        			
			dTOParserProductCategoryByName.IsNew = false;
			
			return dTOParserProductCategoryByName;
		}
	}
	
		
    public class DTOParserProductCategoryDrop : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdName;
		
		public int OrdParentId;
		
		public int OrdDepth;
		
		public int OrdBreadCrumb;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdParentId = reader.GetOrdinal("ParentId");
	        	
	    	OrdDepth = reader.GetOrdinal("Depth");
	        	
	    	OrdBreadCrumb = reader.GetOrdinal("BreadCrumb");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductCategoryDropDto dTOParserProductCategoryDrop = new ProductCategoryDropDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { dTOParserProductCategoryDrop.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserProductCategoryDrop.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdParentId)) { dTOParserProductCategoryDrop.ParentId = reader.GetString(OrdParentId); }
	        	
	    	if (!reader.IsDBNull(OrdDepth)) { dTOParserProductCategoryDrop.Depth = reader.GetInt32(OrdDepth); }
	        	
	    	if (!reader.IsDBNull(OrdBreadCrumb)) { dTOParserProductCategoryDrop.BreadCrumb = reader.GetString(OrdBreadCrumb); }
	        			
			dTOParserProductCategoryDrop.IsNew = false;
			
			return dTOParserProductCategoryDrop;
		}
	}
	
		
    public class DTOParserProductCategoryGoldenTimeDto : DTOParser
    {			
		
		public int OrdBreadCrumb;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdBreadCrumb = reader.GetOrdinal("BreadCrumb");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductCategoryGoldenTimeDtoDto dTOParserProductCategoryGoldenTime = new ProductCategoryGoldenTimeDtoDto();
			
				
	    	if (!reader.IsDBNull(OrdBreadCrumb)) { dTOParserProductCategoryGoldenTime.BreadCrumb = reader.GetString(OrdBreadCrumb); }
	        			
			dTOParserProductCategoryGoldenTime.IsNew = false;
			
			return dTOParserProductCategoryGoldenTime;
		}
	}
	
		
    public class DTOParserProductCategoryInfo : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdSummaryCate;
		
		public int OrdDescription;
		
		public int OrdName;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdSummaryCate = reader.GetOrdinal("SummaryCate");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductCategoryInfoDto dTOParserProductCategoryInfo = new ProductCategoryInfoDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { dTOParserProductCategoryInfo.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdSummaryCate)) { dTOParserProductCategoryInfo.SummaryCate = reader.GetString(OrdSummaryCate); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { dTOParserProductCategoryInfo.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserProductCategoryInfo.Name = reader.GetString(OrdName); }
	        			
			dTOParserProductCategoryInfo.IsNew = false;
			
			return dTOParserProductCategoryInfo;
		}
	}
	
		
    public class DTOParserProductCategoryListAdmin : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdName;
		
		public int OrdParentId;
		
		public int OrdDepth;
		
		public int OrdBreadCrumb;
		
		public int OrdOrdering;
		
		public int OrdtotalSubcate;
		
		public int OrdActive;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdParentId = reader.GetOrdinal("ParentId");
	        	
	    	OrdDepth = reader.GetOrdinal("Depth");
	        	
	    	OrdBreadCrumb = reader.GetOrdinal("BreadCrumb");
	        	
	    	OrdOrdering = reader.GetOrdinal("Ordering");
	        	
	    	OrdtotalSubcate = reader.GetOrdinal("totalSubcate");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductCategoryListAdminDto dTOParserProductCategoryListAdmin = new ProductCategoryListAdminDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { dTOParserProductCategoryListAdmin.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserProductCategoryListAdmin.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdParentId)) { dTOParserProductCategoryListAdmin.ParentId = reader.GetString(OrdParentId); }
	        	
	    	if (!reader.IsDBNull(OrdDepth)) { dTOParserProductCategoryListAdmin.Depth = reader.GetInt32(OrdDepth); }
	        	
	    	if (!reader.IsDBNull(OrdBreadCrumb)) { dTOParserProductCategoryListAdmin.BreadCrumb = reader.GetString(OrdBreadCrumb); }
	        	
	    	if (!reader.IsDBNull(OrdOrdering)) { dTOParserProductCategoryListAdmin.Ordering = reader.GetInt32(OrdOrdering); }
	        	
	    	if (!reader.IsDBNull(OrdtotalSubcate)) { dTOParserProductCategoryListAdmin.totalSubcate = reader.GetString(OrdtotalSubcate); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { dTOParserProductCategoryListAdmin.Active = reader.GetBoolean(OrdActive); }
	        			
			dTOParserProductCategoryListAdmin.IsNew = false;
			
			return dTOParserProductCategoryListAdmin;
		}
	}
	
		
    public class DTOParserProductCategoryMapLinkPaging : DTOParser
    {			
		
		public int OrdSTT;
		
		public int OrdId;
		
		public int OrdCategoryId;
		
		public int OrdName;
		
		public int OrdUrl;
		
		public int OrdPosition;
		
		public int OrdOrdering;
		
		public int OrdActive;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdSTT = reader.GetOrdinal("STT");
	        	
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdCategoryId = reader.GetOrdinal("CategoryId");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdUrl = reader.GetOrdinal("Url");
	        	
	    	OrdPosition = reader.GetOrdinal("Position");
	        	
	    	OrdOrdering = reader.GetOrdinal("Ordering");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductCategoryMapLinkPagingDto dTOParserProductCategoryMapLinkPaging = new ProductCategoryMapLinkPagingDto();
			
				
	    	if (!reader.IsDBNull(OrdSTT)) { dTOParserProductCategoryMapLinkPaging.STT = reader.GetInt32(OrdSTT); }
	        	
	    	if (!reader.IsDBNull(OrdId)) { dTOParserProductCategoryMapLinkPaging.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdCategoryId)) { dTOParserProductCategoryMapLinkPaging.CategoryId = reader.GetString(OrdCategoryId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserProductCategoryMapLinkPaging.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdUrl)) { dTOParserProductCategoryMapLinkPaging.Url = reader.GetString(OrdUrl); }
	        	
	    	if (!reader.IsDBNull(OrdPosition)) { dTOParserProductCategoryMapLinkPaging.Position = reader.GetString(OrdPosition); }
	        	
	    	if (!reader.IsDBNull(OrdOrdering)) { dTOParserProductCategoryMapLinkPaging.Ordering = reader.GetInt32(OrdOrdering); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { dTOParserProductCategoryMapLinkPaging.Active = reader.GetBoolean(OrdActive); }
	        			
			dTOParserProductCategoryMapLinkPaging.IsNew = false;
			
			return dTOParserProductCategoryMapLinkPaging;
		}
	}
	
		
    public class DTOParserProductCategoryParentCate : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdName;
		
		public int OrdDepth;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdDepth = reader.GetOrdinal("Depth");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductCategoryParentCateDto dTOParserProductCategoryParentCate = new ProductCategoryParentCateDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { dTOParserProductCategoryParentCate.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserProductCategoryParentCate.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdDepth)) { dTOParserProductCategoryParentCate.Depth = reader.GetInt32(OrdDepth); }
	        			
			dTOParserProductCategoryParentCate.IsNew = false;
			
			return dTOParserProductCategoryParentCate;
		}
	}
	
		
    public class DTOParserProductCommentList : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdCustomerId;
		
		public int OrdProductId;
		
		public int OrdContent;
		
		public int OrdEmail;
		
		public int OrdParentId;
		
		public int OrdFullName;
		
		public int OrdCusName;
		
		public int OrdCusEmail;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdCustomerId = reader.GetOrdinal("CustomerId");
	        	
	    	OrdProductId = reader.GetOrdinal("ProductId");
	        	
	    	OrdContent = reader.GetOrdinal("Content");
	        	
	    	OrdEmail = reader.GetOrdinal("Email");
	        	
	    	OrdParentId = reader.GetOrdinal("ParentId");
	        	
	    	OrdFullName = reader.GetOrdinal("FullName");
	        	
	    	OrdCusName = reader.GetOrdinal("CusName");
	        	
	    	OrdCusEmail = reader.GetOrdinal("CusEmail");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductCommentListDto dTOParserProductCommentList = new ProductCommentListDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { dTOParserProductCommentList.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdCustomerId)) { dTOParserProductCommentList.CustomerId = reader.GetString(OrdCustomerId); }
	        	
	    	if (!reader.IsDBNull(OrdProductId)) { dTOParserProductCommentList.ProductId = reader.GetString(OrdProductId); }
	        	
	    	if (!reader.IsDBNull(OrdContent)) { dTOParserProductCommentList.Content = reader.GetString(OrdContent); }
	        	
	    	if (!reader.IsDBNull(OrdEmail)) { dTOParserProductCommentList.Email = reader.GetString(OrdEmail); }
	        	
	    	if (!reader.IsDBNull(OrdParentId)) { dTOParserProductCommentList.ParentId = reader.GetString(OrdParentId); }
	        	
	    	if (!reader.IsDBNull(OrdFullName)) { dTOParserProductCommentList.FullName = reader.GetString(OrdFullName); }
	        	
	    	if (!reader.IsDBNull(OrdCusName)) { dTOParserProductCommentList.CusName = reader.GetString(OrdCusName); }
	        	
	    	if (!reader.IsDBNull(OrdCusEmail)) { dTOParserProductCommentList.CusEmail = reader.GetString(OrdCusEmail); }
	        			
			dTOParserProductCommentList.IsNew = false;
			
			return dTOParserProductCommentList;
		}
	}
	
		
    public class DTOParserProductCommentListDetail : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdParentId;
		
		public int OrdCustomerId;
		
		public int OrdProductId;
		
		public int OrdTitle;
		
		public int OrdContent;
		
		public int OrdCreateDate;
		
		public int OrdUpdateDate;
		
		public int OrdStar;
		
		public int OrdAgree;
		
		public int OrdActive;
		
		public int OrdFullName;
		
		public int OrdEmail;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdParentId = reader.GetOrdinal("ParentId");
	        	
	    	OrdCustomerId = reader.GetOrdinal("CustomerId");
	        	
	    	OrdProductId = reader.GetOrdinal("ProductId");
	        	
	    	OrdTitle = reader.GetOrdinal("Title");
	        	
	    	OrdContent = reader.GetOrdinal("Content");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdUpdateDate = reader.GetOrdinal("UpdateDate");
	        	
	    	OrdStar = reader.GetOrdinal("Star");
	        	
	    	OrdAgree = reader.GetOrdinal("Agree");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        	
	    	OrdFullName = reader.GetOrdinal("FullName");
	        	
	    	OrdEmail = reader.GetOrdinal("Email");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductCommentListDetailDto dTOParserProductCommentListDetail = new ProductCommentListDetailDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { dTOParserProductCommentListDetail.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdParentId)) { dTOParserProductCommentListDetail.ParentId = reader.GetInt32(OrdParentId); }
	        	
	    	if (!reader.IsDBNull(OrdCustomerId)) { dTOParserProductCommentListDetail.CustomerId = reader.GetString(OrdCustomerId); }
	        	
	    	if (!reader.IsDBNull(OrdProductId)) { dTOParserProductCommentListDetail.ProductId = reader.GetString(OrdProductId); }
	        	
	    	if (!reader.IsDBNull(OrdTitle)) { dTOParserProductCommentListDetail.Title = reader.GetString(OrdTitle); }
	        	
	    	if (!reader.IsDBNull(OrdContent)) { dTOParserProductCommentListDetail.Content = reader.GetString(OrdContent); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { dTOParserProductCommentListDetail.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdUpdateDate)) { dTOParserProductCommentListDetail.UpdateDate = reader.GetDateTime(OrdUpdateDate); }
	        	
	    	if (!reader.IsDBNull(OrdStar)) { dTOParserProductCommentListDetail.Star = reader.GetInt32(OrdStar); }
	        	
	    	if (!reader.IsDBNull(OrdAgree)) { dTOParserProductCommentListDetail.Agree = reader.GetBoolean(OrdAgree); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { dTOParserProductCommentListDetail.Active = reader.GetBoolean(OrdActive); }
	        	
	    	if (!reader.IsDBNull(OrdFullName)) { dTOParserProductCommentListDetail.FullName = reader.GetString(OrdFullName); }
	        	
	    	if (!reader.IsDBNull(OrdEmail)) { dTOParserProductCommentListDetail.Email = reader.GetString(OrdEmail); }
	        			
			dTOParserProductCommentListDetail.IsNew = false;
			
			return dTOParserProductCommentListDetail;
		}
	}
	
		
    public class DTOParserProductDetail : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdBarcode;
		
		public int OrdCategoryId;
		
		public int OrdName;
		
		public int OrdSummary;
		
		public int OrdDescription;
		
		public int OrdMetaDescription;
		
		public int OrdMetaKeyword;
		
		public int OrdCreateDate;
		
		public int OrdKeyword;
		
		public int OrdPrice;
		
		public int OrdDiscount;
		
		public int OrdQuantity;
		
		public int OrdActive;
		
		public int OrdPromotionPercent;
		
		public int OrdProviderId;
		
		public int OrdStartEndPromotion;
		
		public int OrdEndDatePromotion;
		
		public int OrdMetaTitle;
		
		public int OrdProductStatus;
		
		public int OrdStockStatus;
		
		public int OrdPromotionInfo;
		
		public int OrdShow;
		
		public int OrdDecreasePrice;
		
		public int OrdCustomInfoFirst;
		
		public int OrdCustomInfoSecond;
		
		public int OrdCustomInfoThird;
		
		public int OrdTotalView;
		
		public int OrdProviderName;
		
		public int OrdProviderDescription;
		
		public int OrdProviderImagePath;
		
		public int OrdCategoryName;
		
		public int OrdImagePath;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdBarcode = reader.GetOrdinal("Barcode");
	        	
	    	OrdCategoryId = reader.GetOrdinal("CategoryId");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdSummary = reader.GetOrdinal("Summary");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdMetaDescription = reader.GetOrdinal("MetaDescription");
	        	
	    	OrdMetaKeyword = reader.GetOrdinal("MetaKeyword");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdKeyword = reader.GetOrdinal("Keyword");
	        	
	    	OrdPrice = reader.GetOrdinal("Price");
	        	
	    	OrdDiscount = reader.GetOrdinal("Discount");
	        	
	    	OrdQuantity = reader.GetOrdinal("Quantity");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        	
	    	OrdPromotionPercent = reader.GetOrdinal("PromotionPercent");
	        	
	    	OrdProviderId = reader.GetOrdinal("ProviderId");
	        	
	    	OrdStartEndPromotion = reader.GetOrdinal("StartEndPromotion");
	        	
	    	OrdEndDatePromotion = reader.GetOrdinal("EndDatePromotion");
	        	
	    	OrdMetaTitle = reader.GetOrdinal("MetaTitle");
	        	
	    	OrdProductStatus = reader.GetOrdinal("ProductStatus");
	        	
	    	OrdStockStatus = reader.GetOrdinal("StockStatus");
	        	
	    	OrdPromotionInfo = reader.GetOrdinal("PromotionInfo");
	        	
	    	OrdShow = reader.GetOrdinal("Show");
	        	
	    	OrdDecreasePrice = reader.GetOrdinal("DecreasePrice");
	        	
	    	OrdCustomInfoFirst = reader.GetOrdinal("CustomInfoFirst");
	        	
	    	OrdCustomInfoSecond = reader.GetOrdinal("CustomInfoSecond");
	        	
	    	OrdCustomInfoThird = reader.GetOrdinal("CustomInfoThird");
	        	
	    	OrdTotalView = reader.GetOrdinal("TotalView");
	        	
	    	OrdProviderName = reader.GetOrdinal("ProviderName");
	        	
	    	OrdProviderDescription = reader.GetOrdinal("ProviderDescription");
	        	
	    	OrdProviderImagePath = reader.GetOrdinal("ProviderImagePath");
	        	
	    	OrdCategoryName = reader.GetOrdinal("CategoryName");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductDetailDto dTOParserProductDetail = new ProductDetailDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { dTOParserProductDetail.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdBarcode)) { dTOParserProductDetail.Barcode = reader.GetString(OrdBarcode); }
	        	
	    	if (!reader.IsDBNull(OrdCategoryId)) { dTOParserProductDetail.CategoryId = reader.GetString(OrdCategoryId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserProductDetail.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdSummary)) { dTOParserProductDetail.Summary = reader.GetString(OrdSummary); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { dTOParserProductDetail.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdMetaDescription)) { dTOParserProductDetail.MetaDescription = reader.GetString(OrdMetaDescription); }
	        	
	    	if (!reader.IsDBNull(OrdMetaKeyword)) { dTOParserProductDetail.MetaKeyword = reader.GetString(OrdMetaKeyword); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { dTOParserProductDetail.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdKeyword)) { dTOParserProductDetail.Keyword = reader.GetString(OrdKeyword); }
	        	
	    	if (!reader.IsDBNull(OrdPrice)) { dTOParserProductDetail.Price = reader.GetDecimal(OrdPrice); }
	        	
	    	if (!reader.IsDBNull(OrdDiscount)) { dTOParserProductDetail.Discount = reader.GetDouble(OrdDiscount); }
	        	
	    	if (!reader.IsDBNull(OrdQuantity)) { dTOParserProductDetail.Quantity = reader.GetInt32(OrdQuantity); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { dTOParserProductDetail.Active = reader.GetString(OrdActive); }
	        	
	    	if (!reader.IsDBNull(OrdPromotionPercent)) { dTOParserProductDetail.PromotionPercent = reader.GetInt32(OrdPromotionPercent); }
	        	
	    	if (!reader.IsDBNull(OrdProviderId)) { dTOParserProductDetail.ProviderId = reader.GetInt32(OrdProviderId); }
	        	
	    	if (!reader.IsDBNull(OrdStartEndPromotion)) { dTOParserProductDetail.StartEndPromotion = reader.GetDateTime(OrdStartEndPromotion); }
	        	
	    	if (!reader.IsDBNull(OrdEndDatePromotion)) { dTOParserProductDetail.EndDatePromotion = reader.GetDateTime(OrdEndDatePromotion); }
	        	
	    	if (!reader.IsDBNull(OrdMetaTitle)) { dTOParserProductDetail.MetaTitle = reader.GetString(OrdMetaTitle); }
	        	
	    	if (!reader.IsDBNull(OrdProductStatus)) { dTOParserProductDetail.ProductStatus = reader.GetString(OrdProductStatus); }
	        	
	    	if (!reader.IsDBNull(OrdStockStatus)) { dTOParserProductDetail.StockStatus = reader.GetBoolean(OrdStockStatus); }
	        	
	    	if (!reader.IsDBNull(OrdPromotionInfo)) { dTOParserProductDetail.PromotionInfo = reader.GetString(OrdPromotionInfo); }
	        	
	    	if (!reader.IsDBNull(OrdShow)) { dTOParserProductDetail.Show = reader.GetBoolean(OrdShow); }
	        	
	    	if (!reader.IsDBNull(OrdDecreasePrice)) { dTOParserProductDetail.DecreasePrice = reader.GetDecimal(OrdDecreasePrice); }
	        	
	    	if (!reader.IsDBNull(OrdCustomInfoFirst)) { dTOParserProductDetail.CustomInfoFirst = reader.GetString(OrdCustomInfoFirst); }
	        	
	    	if (!reader.IsDBNull(OrdCustomInfoSecond)) { dTOParserProductDetail.CustomInfoSecond = reader.GetString(OrdCustomInfoSecond); }
	        	
	    	if (!reader.IsDBNull(OrdCustomInfoThird)) { dTOParserProductDetail.CustomInfoThird = reader.GetString(OrdCustomInfoThird); }
	        	
	    	if (!reader.IsDBNull(OrdTotalView)) { dTOParserProductDetail.TotalView = reader.GetInt32(OrdTotalView); }
	        	
	    	if (!reader.IsDBNull(OrdProviderName)) { dTOParserProductDetail.ProviderName = reader.GetString(OrdProviderName); }
	        	
	    	if (!reader.IsDBNull(OrdProviderDescription)) { dTOParserProductDetail.ProviderDescription = reader.GetString(OrdProviderDescription); }
	        	
	    	if (!reader.IsDBNull(OrdProviderImagePath)) { dTOParserProductDetail.ProviderImagePath = reader.GetString(OrdProviderImagePath); }
	        	
	    	if (!reader.IsDBNull(OrdCategoryName)) { dTOParserProductDetail.CategoryName = reader.GetString(OrdCategoryName); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { dTOParserProductDetail.ImagePath = reader.GetString(OrdImagePath); }
	        			
			dTOParserProductDetail.IsNew = false;
			
			return dTOParserProductDetail;
		}
	}
	
		
    public class DTOParserProductGoldenTimeList : DTOParser
    {			
		
		public int OrdBarcode;
		
		public int OrdName;
		
		public int OrdPrice;
		
		public int OrdPromotionPercent;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdBarcode = reader.GetOrdinal("Barcode");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdPrice = reader.GetOrdinal("Price");
	        	
	    	OrdPromotionPercent = reader.GetOrdinal("PromotionPercent");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductGoldenTimeListDto dTOParserProductGoldenTimeList = new ProductGoldenTimeListDto();
			
				
	    	if (!reader.IsDBNull(OrdBarcode)) { dTOParserProductGoldenTimeList.Barcode = reader.GetString(OrdBarcode); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserProductGoldenTimeList.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdPrice)) { dTOParserProductGoldenTimeList.Price = reader.GetDecimal(OrdPrice); }
	        	
	    	if (!reader.IsDBNull(OrdPromotionPercent)) { dTOParserProductGoldenTimeList.PromotionPercent = reader.GetInt32(OrdPromotionPercent); }
	        			
			dTOParserProductGoldenTimeList.IsNew = false;
			
			return dTOParserProductGoldenTimeList;
		}
	}
	
		
    public class DTOParserProductGoldenTimeListByCate : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdCategoryId;
		
		public int OrdName;
		
		public int OrdPrice;
		
		public int OrdDiscount;
		
		public int OrdDecreasePrice;
		
		public int OrdQuantity;
		
		public int OrdPromotionPercent;
		
		public int OrdStartEndPromotion;
		
		public int OrdEndDatePromotion;
		
		public int OrdProductStatus;
		
		public int OrdStockStatus;
		
		public int OrdShow;
		
		public int OrdCustomInfoFirst;
		
		public int OrdCustomInfoSecond;
		
		public int OrdCustomInfoThird;
		
		public int OrdPromotionInfo;
		
		public int OrdCreateDate;
		
		public int OrdImagePath;
		
		public int OrdImageDescription;
		
		public int OrdImageName;
		
		public int OrdProviderName;
		
		public int OrdBreadCrumb;
		
		public int OrdPromotionUnit;
		
		public int OrdPriceUnit;
		
		public int OrdIsHot;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdCategoryId = reader.GetOrdinal("CategoryId");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdPrice = reader.GetOrdinal("Price");
	        	
	    	OrdDiscount = reader.GetOrdinal("Discount");
	        	
	    	OrdDecreasePrice = reader.GetOrdinal("DecreasePrice");
	        	
	    	OrdQuantity = reader.GetOrdinal("Quantity");
	        	
	    	OrdPromotionPercent = reader.GetOrdinal("PromotionPercent");
	        	
	    	OrdStartEndPromotion = reader.GetOrdinal("StartEndPromotion");
	        	
	    	OrdEndDatePromotion = reader.GetOrdinal("EndDatePromotion");
	        	
	    	OrdProductStatus = reader.GetOrdinal("ProductStatus");
	        	
	    	OrdStockStatus = reader.GetOrdinal("StockStatus");
	        	
	    	OrdShow = reader.GetOrdinal("Show");
	        	
	    	OrdCustomInfoFirst = reader.GetOrdinal("CustomInfoFirst");
	        	
	    	OrdCustomInfoSecond = reader.GetOrdinal("CustomInfoSecond");
	        	
	    	OrdCustomInfoThird = reader.GetOrdinal("CustomInfoThird");
	        	
	    	OrdPromotionInfo = reader.GetOrdinal("PromotionInfo");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        	
	    	OrdImageDescription = reader.GetOrdinal("ImageDescription");
	        	
	    	OrdImageName = reader.GetOrdinal("ImageName");
	        	
	    	OrdProviderName = reader.GetOrdinal("ProviderName");
	        	
	    	OrdBreadCrumb = reader.GetOrdinal("BreadCrumb");
	        	
	    	OrdPromotionUnit = reader.GetOrdinal("PromotionUnit");
	        	
	    	OrdPriceUnit = reader.GetOrdinal("PriceUnit");
	        	
	    	OrdIsHot = reader.GetOrdinal("IsHot");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductGoldenTimeListByCateDto dTOParserProductGoldenTimeListByCate = new ProductGoldenTimeListByCateDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { dTOParserProductGoldenTimeListByCate.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdCategoryId)) { dTOParserProductGoldenTimeListByCate.CategoryId = reader.GetString(OrdCategoryId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserProductGoldenTimeListByCate.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdPrice)) { dTOParserProductGoldenTimeListByCate.Price = reader.GetDecimal(OrdPrice); }
	        	
	    	if (!reader.IsDBNull(OrdDiscount)) { dTOParserProductGoldenTimeListByCate.Discount = reader.GetDouble(OrdDiscount); }
	        	
	    	if (!reader.IsDBNull(OrdDecreasePrice)) { dTOParserProductGoldenTimeListByCate.DecreasePrice = reader.GetDecimal(OrdDecreasePrice); }
	        	
	    	if (!reader.IsDBNull(OrdQuantity)) { dTOParserProductGoldenTimeListByCate.Quantity = reader.GetInt32(OrdQuantity); }
	        	
	    	if (!reader.IsDBNull(OrdPromotionPercent)) { dTOParserProductGoldenTimeListByCate.PromotionPercent = reader.GetInt32(OrdPromotionPercent); }
	        	
	    	if (!reader.IsDBNull(OrdStartEndPromotion)) { dTOParserProductGoldenTimeListByCate.StartEndPromotion = reader.GetDateTime(OrdStartEndPromotion); }
	        	
	    	if (!reader.IsDBNull(OrdEndDatePromotion)) { dTOParserProductGoldenTimeListByCate.EndDatePromotion = reader.GetDateTime(OrdEndDatePromotion); }
	        	
	    	if (!reader.IsDBNull(OrdProductStatus)) { dTOParserProductGoldenTimeListByCate.ProductStatus = reader.GetString(OrdProductStatus); }
	        	
	    	if (!reader.IsDBNull(OrdStockStatus)) { dTOParserProductGoldenTimeListByCate.StockStatus = reader.GetBoolean(OrdStockStatus); }
	        	
	    	if (!reader.IsDBNull(OrdShow)) { dTOParserProductGoldenTimeListByCate.Show = reader.GetBoolean(OrdShow); }
	        	
	    	if (!reader.IsDBNull(OrdCustomInfoFirst)) { dTOParserProductGoldenTimeListByCate.CustomInfoFirst = reader.GetString(OrdCustomInfoFirst); }
	        	
	    	if (!reader.IsDBNull(OrdCustomInfoSecond)) { dTOParserProductGoldenTimeListByCate.CustomInfoSecond = reader.GetString(OrdCustomInfoSecond); }
	        	
	    	if (!reader.IsDBNull(OrdCustomInfoThird)) { dTOParserProductGoldenTimeListByCate.CustomInfoThird = reader.GetString(OrdCustomInfoThird); }
	        	
	    	if (!reader.IsDBNull(OrdPromotionInfo)) { dTOParserProductGoldenTimeListByCate.PromotionInfo = reader.GetString(OrdPromotionInfo); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { dTOParserProductGoldenTimeListByCate.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { dTOParserProductGoldenTimeListByCate.ImagePath = reader.GetString(OrdImagePath); }
	        	
	    	if (!reader.IsDBNull(OrdImageDescription)) { dTOParserProductGoldenTimeListByCate.ImageDescription = reader.GetString(OrdImageDescription); }
	        	
	    	if (!reader.IsDBNull(OrdImageName)) { dTOParserProductGoldenTimeListByCate.ImageName = reader.GetString(OrdImageName); }
	        	
	    	if (!reader.IsDBNull(OrdProviderName)) { dTOParserProductGoldenTimeListByCate.ProviderName = reader.GetString(OrdProviderName); }
	        	
	    	if (!reader.IsDBNull(OrdBreadCrumb)) { dTOParserProductGoldenTimeListByCate.BreadCrumb = reader.GetString(OrdBreadCrumb); }
	        	
	    	if (!reader.IsDBNull(OrdPromotionUnit)) { dTOParserProductGoldenTimeListByCate.PromotionUnit = reader.GetInt32(OrdPromotionUnit); }
	        	
	    	if (!reader.IsDBNull(OrdPriceUnit)) { dTOParserProductGoldenTimeListByCate.PriceUnit = reader.GetDecimal(OrdPriceUnit); }
	        	
	    	if (!reader.IsDBNull(OrdIsHot)) { dTOParserProductGoldenTimeListByCate.IsHot = reader.GetBoolean(OrdIsHot); }
	        			
			dTOParserProductGoldenTimeListByCate.IsNew = false;
			
			return dTOParserProductGoldenTimeListByCate;
		}
	}
	
		
    public class DTOParserProductImageHasColorInfo : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdProductId;
		
		public int OrdImagePath;
		
		public int OrdOrdering;
		
		public int OrdDescription;
		
		public int OrdColorId;
		
		public int OrdAvartar;
		
		public int OrdActive;
		
		public int OrdImageName;
		
		public int OrdColorName;
		
		public int OrdCode;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdProductId = reader.GetOrdinal("ProductId");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        	
	    	OrdOrdering = reader.GetOrdinal("Ordering");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdColorId = reader.GetOrdinal("ColorId");
	        	
	    	OrdAvartar = reader.GetOrdinal("Avartar");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        	
	    	OrdImageName = reader.GetOrdinal("ImageName");
	        	
	    	OrdColorName = reader.GetOrdinal("ColorName");
	        	
	    	OrdCode = reader.GetOrdinal("Code");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductImageHasColorInfoDto dTOParserProductImageHasColorInfo = new ProductImageHasColorInfoDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { dTOParserProductImageHasColorInfo.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdProductId)) { dTOParserProductImageHasColorInfo.ProductId = reader.GetString(OrdProductId); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { dTOParserProductImageHasColorInfo.ImagePath = reader.GetString(OrdImagePath); }
	        	
	    	if (!reader.IsDBNull(OrdOrdering)) { dTOParserProductImageHasColorInfo.Ordering = reader.GetInt32(OrdOrdering); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { dTOParserProductImageHasColorInfo.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdColorId)) { dTOParserProductImageHasColorInfo.ColorId = reader.GetString(OrdColorId); }
	        	
	    	if (!reader.IsDBNull(OrdAvartar)) { dTOParserProductImageHasColorInfo.Avartar = reader.GetBoolean(OrdAvartar); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { dTOParserProductImageHasColorInfo.Active = reader.GetBoolean(OrdActive); }
	        	
	    	if (!reader.IsDBNull(OrdImageName)) { dTOParserProductImageHasColorInfo.ImageName = reader.GetString(OrdImageName); }
	        	
	    	if (!reader.IsDBNull(OrdColorName)) { dTOParserProductImageHasColorInfo.ColorName = reader.GetString(OrdColorName); }
	        	
	    	if (!reader.IsDBNull(OrdCode)) { dTOParserProductImageHasColorInfo.Code = reader.GetString(OrdCode); }
	        			
			dTOParserProductImageHasColorInfo.IsNew = false;
			
			return dTOParserProductImageHasColorInfo;
		}
	}
	
		
    public class DTOParserProductImageHasColorName : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdProductId;
		
		public int OrdImagePath;
		
		public int OrdOrdering;
		
		public int OrdDescription;
		
		public int OrdColorId;
		
		public int OrdAvartar;
		
		public int OrdActive;
		
		public int OrdImageName;
		
		public int OrdCreatedDate;
		
		public int OrdModifiedDate;
		
		public int OrdColorName;
		
		public int OrdCode;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdProductId = reader.GetOrdinal("ProductId");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        	
	    	OrdOrdering = reader.GetOrdinal("Ordering");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdColorId = reader.GetOrdinal("ColorId");
	        	
	    	OrdAvartar = reader.GetOrdinal("Avartar");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        	
	    	OrdImageName = reader.GetOrdinal("ImageName");
	        	
	    	OrdCreatedDate = reader.GetOrdinal("CreatedDate");
	        	
	    	OrdModifiedDate = reader.GetOrdinal("ModifiedDate");
	        	
	    	OrdColorName = reader.GetOrdinal("ColorName");
	        	
	    	OrdCode = reader.GetOrdinal("Code");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductImageHasColorNameDto dTOParserProductImageHasColorName = new ProductImageHasColorNameDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { dTOParserProductImageHasColorName.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdProductId)) { dTOParserProductImageHasColorName.ProductId = reader.GetString(OrdProductId); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { dTOParserProductImageHasColorName.ImagePath = reader.GetString(OrdImagePath); }
	        	
	    	if (!reader.IsDBNull(OrdOrdering)) { dTOParserProductImageHasColorName.Ordering = reader.GetInt32(OrdOrdering); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { dTOParserProductImageHasColorName.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdColorId)) { dTOParserProductImageHasColorName.ColorId = reader.GetString(OrdColorId); }
	        	
	    	if (!reader.IsDBNull(OrdAvartar)) { dTOParserProductImageHasColorName.Avartar = reader.GetBoolean(OrdAvartar); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { dTOParserProductImageHasColorName.Active = reader.GetBoolean(OrdActive); }
	        	
	    	if (!reader.IsDBNull(OrdImageName)) { dTOParserProductImageHasColorName.ImageName = reader.GetString(OrdImageName); }
	        	
	    	if (!reader.IsDBNull(OrdCreatedDate)) { dTOParserProductImageHasColorName.CreatedDate = reader.GetDateTime(OrdCreatedDate); }
	        	
	    	if (!reader.IsDBNull(OrdModifiedDate)) { dTOParserProductImageHasColorName.ModifiedDate = reader.GetDateTime(OrdModifiedDate); }
	        	
	    	if (!reader.IsDBNull(OrdColorName)) { dTOParserProductImageHasColorName.ColorName = reader.GetString(OrdColorName); }
	        	
	    	if (!reader.IsDBNull(OrdCode)) { dTOParserProductImageHasColorName.Code = reader.GetString(OrdCode); }
	        			
			dTOParserProductImageHasColorName.IsNew = false;
			
			return dTOParserProductImageHasColorName;
		}
	}
	
		
    public class DTOParserProductListForPaging : DTOParser
    {			
		
		public int OrdSTT;
		
		public int OrdId;
		
		public int OrdBarcode;
		
		public int OrdCategoryId;
		
		public int OrdName;
		
		public int OrdSummary;
		
		public int OrdMetaDescription;
		
		public int OrdMetaKeyword;
		
		public int OrdCreateDate;
		
		public int OrdPrice;
		
		public int OrdQuantity;
		
		public int OrdProviderId;
		
		public int OrdMetaTitle;
		
		public int OrdProductStatus;
		
		public int OrdStockStatus;
		
		public int OrdImagePath;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdSTT = reader.GetOrdinal("STT");
	        	
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdBarcode = reader.GetOrdinal("Barcode");
	        	
	    	OrdCategoryId = reader.GetOrdinal("CategoryId");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdSummary = reader.GetOrdinal("Summary");
	        	
	    	OrdMetaDescription = reader.GetOrdinal("MetaDescription");
	        	
	    	OrdMetaKeyword = reader.GetOrdinal("MetaKeyword");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdPrice = reader.GetOrdinal("Price");
	        	
	    	OrdQuantity = reader.GetOrdinal("Quantity");
	        	
	    	OrdProviderId = reader.GetOrdinal("ProviderId");
	        	
	    	OrdMetaTitle = reader.GetOrdinal("MetaTitle");
	        	
	    	OrdProductStatus = reader.GetOrdinal("ProductStatus");
	        	
	    	OrdStockStatus = reader.GetOrdinal("StockStatus");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductListForPagingDto dTOParserProductListForPaging = new ProductListForPagingDto();
			
				
	    	if (!reader.IsDBNull(OrdSTT)) { dTOParserProductListForPaging.STT = reader.GetInt32(OrdSTT); }
	        	
	    	if (!reader.IsDBNull(OrdId)) { dTOParserProductListForPaging.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdBarcode)) { dTOParserProductListForPaging.Barcode = reader.GetString(OrdBarcode); }
	        	
	    	if (!reader.IsDBNull(OrdCategoryId)) { dTOParserProductListForPaging.CategoryId = reader.GetString(OrdCategoryId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserProductListForPaging.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdSummary)) { dTOParserProductListForPaging.Summary = reader.GetString(OrdSummary); }
	        	
	    	if (!reader.IsDBNull(OrdMetaDescription)) { dTOParserProductListForPaging.MetaDescription = reader.GetString(OrdMetaDescription); }
	        	
	    	if (!reader.IsDBNull(OrdMetaKeyword)) { dTOParserProductListForPaging.MetaKeyword = reader.GetString(OrdMetaKeyword); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { dTOParserProductListForPaging.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdPrice)) { dTOParserProductListForPaging.Price = reader.GetDecimal(OrdPrice); }
	        	
	    	if (!reader.IsDBNull(OrdQuantity)) { dTOParserProductListForPaging.Quantity = reader.GetInt32(OrdQuantity); }
	        	
	    	if (!reader.IsDBNull(OrdProviderId)) { dTOParserProductListForPaging.ProviderId = reader.GetInt32(OrdProviderId); }
	        	
	    	if (!reader.IsDBNull(OrdMetaTitle)) { dTOParserProductListForPaging.MetaTitle = reader.GetString(OrdMetaTitle); }
	        	
	    	if (!reader.IsDBNull(OrdProductStatus)) { dTOParserProductListForPaging.ProductStatus = reader.GetString(OrdProductStatus); }
	        	
	    	if (!reader.IsDBNull(OrdStockStatus)) { dTOParserProductListForPaging.StockStatus = reader.GetBoolean(OrdStockStatus); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { dTOParserProductListForPaging.ImagePath = reader.GetString(OrdImagePath); }
	        			
			dTOParserProductListForPaging.IsNew = false;
			
			return dTOParserProductListForPaging;
		}
	}
	
		
    public class DTOParserProductListProviderHome : DTOParser
    {			
		
		public int OrdSTT;
		
		public int OrdId;
		
		public int OrdCategoryId;
		
		public int OrdName;
		
		public int OrdPrice;
		
		public int OrdQuantity;
		
		public int OrdUsePercentage;
		
		public int OrdDiscountPercentage;
		
		public int OrdDiscountAmount;
		
		public int OrdPromotionPrice;
		
		public int OrdGiftId;
		
		public int OrdProductStatus;
		
		public int OrdStockStatus;
		
		public int OrdShow;
		
		public int OrdCustomInfoFirst;
		
		public int OrdCustomInfoSecond;
		
		public int OrdCustomInfoThird;
		
		public int OrdCreateDate;
		
		public int OrdProviderName;
		
		public int OrdImagePath;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdSTT = reader.GetOrdinal("STT");
	        	
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdCategoryId = reader.GetOrdinal("CategoryId");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdPrice = reader.GetOrdinal("Price");
	        	
	    	OrdQuantity = reader.GetOrdinal("Quantity");
	        	
	    	OrdUsePercentage = reader.GetOrdinal("UsePercentage");
	        	
	    	OrdDiscountPercentage = reader.GetOrdinal("DiscountPercentage");
	        	
	    	OrdDiscountAmount = reader.GetOrdinal("DiscountAmount");
	        	
	    	OrdPromotionPrice = reader.GetOrdinal("PromotionPrice");
	        	
	    	OrdGiftId = reader.GetOrdinal("GiftId");
	        	
	    	OrdProductStatus = reader.GetOrdinal("ProductStatus");
	        	
	    	OrdStockStatus = reader.GetOrdinal("StockStatus");
	        	
	    	OrdShow = reader.GetOrdinal("Show");
	        	
	    	OrdCustomInfoFirst = reader.GetOrdinal("CustomInfoFirst");
	        	
	    	OrdCustomInfoSecond = reader.GetOrdinal("CustomInfoSecond");
	        	
	    	OrdCustomInfoThird = reader.GetOrdinal("CustomInfoThird");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdProviderName = reader.GetOrdinal("ProviderName");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductListProviderHomeDto dTOParserProductListProviderHome = new ProductListProviderHomeDto();
			
				
	    	if (!reader.IsDBNull(OrdSTT)) { dTOParserProductListProviderHome.STT = reader.GetInt32(OrdSTT); }
	        	
	    	if (!reader.IsDBNull(OrdId)) { dTOParserProductListProviderHome.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdCategoryId)) { dTOParserProductListProviderHome.CategoryId = reader.GetString(OrdCategoryId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserProductListProviderHome.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdPrice)) { dTOParserProductListProviderHome.Price = reader.GetDecimal(OrdPrice); }
	        	
	    	if (!reader.IsDBNull(OrdQuantity)) { dTOParserProductListProviderHome.Quantity = reader.GetInt32(OrdQuantity); }
	        	
	    	if (!reader.IsDBNull(OrdUsePercentage)) { dTOParserProductListProviderHome.UsePercentage = reader.GetBoolean(OrdUsePercentage); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountPercentage)) { dTOParserProductListProviderHome.DiscountPercentage = reader.GetDecimal(OrdDiscountPercentage); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountAmount)) { dTOParserProductListProviderHome.DiscountAmount = reader.GetDecimal(OrdDiscountAmount); }
	        	
	    	if (!reader.IsDBNull(OrdPromotionPrice)) { dTOParserProductListProviderHome.PromotionPrice = reader.GetDecimal(OrdPromotionPrice); }
	        	
	    	if (!reader.IsDBNull(OrdGiftId)) { dTOParserProductListProviderHome.GiftId = reader.GetInt32(OrdGiftId); }
	        	
	    	if (!reader.IsDBNull(OrdProductStatus)) { dTOParserProductListProviderHome.ProductStatus = reader.GetString(OrdProductStatus); }
	        	
	    	if (!reader.IsDBNull(OrdStockStatus)) { dTOParserProductListProviderHome.StockStatus = reader.GetBoolean(OrdStockStatus); }
	        	
	    	if (!reader.IsDBNull(OrdShow)) { dTOParserProductListProviderHome.Show = reader.GetBoolean(OrdShow); }
	        	
	    	if (!reader.IsDBNull(OrdCustomInfoFirst)) { dTOParserProductListProviderHome.CustomInfoFirst = reader.GetString(OrdCustomInfoFirst); }
	        	
	    	if (!reader.IsDBNull(OrdCustomInfoSecond)) { dTOParserProductListProviderHome.CustomInfoSecond = reader.GetString(OrdCustomInfoSecond); }
	        	
	    	if (!reader.IsDBNull(OrdCustomInfoThird)) { dTOParserProductListProviderHome.CustomInfoThird = reader.GetString(OrdCustomInfoThird); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { dTOParserProductListProviderHome.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdProviderName)) { dTOParserProductListProviderHome.ProviderName = reader.GetString(OrdProviderName); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { dTOParserProductListProviderHome.ImagePath = reader.GetString(OrdImagePath); }
	        			
			dTOParserProductListProviderHome.IsNew = false;
			
			return dTOParserProductListProviderHome;
		}
	}
	
		
    public class DTOParserProductMenuHome : DTOParser
    {			
		
		public int OrdSTT;
		
		public int OrdId;
		
		public int OrdCategoryId;
		
		public int OrdName;
		
		public int OrdPrice;
		
		public int OrdUsePercentage;
		
		public int OrdDiscountPercentage;
		
		public int OrdDiscountAmount;
		
		public int OrdPromotionPrice;
		
		public int OrdGiftId;
		
		public int OrdImagePath;
		
		public int OrdProviderName;
		
		public int OrdchkType;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdSTT = reader.GetOrdinal("STT");
	        	
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdCategoryId = reader.GetOrdinal("CategoryId");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdPrice = reader.GetOrdinal("Price");
	        	
	    	OrdUsePercentage = reader.GetOrdinal("UsePercentage");
	        	
	    	OrdDiscountPercentage = reader.GetOrdinal("DiscountPercentage");
	        	
	    	OrdDiscountAmount = reader.GetOrdinal("DiscountAmount");
	        	
	    	OrdPromotionPrice = reader.GetOrdinal("PromotionPrice");
	        	
	    	OrdGiftId = reader.GetOrdinal("GiftId");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        	
	    	OrdProviderName = reader.GetOrdinal("ProviderName");
	        	
	    	OrdchkType = reader.GetOrdinal("chkType");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductMenuHomeDto dTOParserProductMenuHome = new ProductMenuHomeDto();
			
				
	    	if (!reader.IsDBNull(OrdSTT)) { dTOParserProductMenuHome.STT = reader.GetInt32(OrdSTT); }
	        	
	    	if (!reader.IsDBNull(OrdId)) { dTOParserProductMenuHome.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdCategoryId)) { dTOParserProductMenuHome.CategoryId = reader.GetString(OrdCategoryId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserProductMenuHome.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdPrice)) { dTOParserProductMenuHome.Price = reader.GetDecimal(OrdPrice); }
	        	
	    	if (!reader.IsDBNull(OrdUsePercentage)) { dTOParserProductMenuHome.UsePercentage = reader.GetBoolean(OrdUsePercentage); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountPercentage)) { dTOParserProductMenuHome.DiscountPercentage = reader.GetDecimal(OrdDiscountPercentage); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountAmount)) { dTOParserProductMenuHome.DiscountAmount = reader.GetDecimal(OrdDiscountAmount); }
	        	
	    	if (!reader.IsDBNull(OrdPromotionPrice)) { dTOParserProductMenuHome.PromotionPrice = reader.GetDecimal(OrdPromotionPrice); }
	        	
	    	if (!reader.IsDBNull(OrdGiftId)) { dTOParserProductMenuHome.GiftId = reader.GetInt32(OrdGiftId); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { dTOParserProductMenuHome.ImagePath = reader.GetString(OrdImagePath); }
	        	
	    	if (!reader.IsDBNull(OrdProviderName)) { dTOParserProductMenuHome.ProviderName = reader.GetString(OrdProviderName); }
	        	
	    	if (!reader.IsDBNull(OrdchkType)) { dTOParserProductMenuHome.chkType = reader.GetString(OrdchkType); }
	        			
			dTOParserProductMenuHome.IsNew = false;
			
			return dTOParserProductMenuHome;
		}
	}
	
		
    public class DTOParserProductNameList : DTOParser
    {			
		
		public int OrdName;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdName = reader.GetOrdinal("Name");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductNameListDto dTOParserProductNameList = new ProductNameListDto();
			
				
	    	if (!reader.IsDBNull(OrdName)) { dTOParserProductNameList.Name = reader.GetString(OrdName); }
	        			
			dTOParserProductNameList.IsNew = false;
			
			return dTOParserProductNameList;
		}
	}
	
		
    public class DTOParserProductPromotionTopList : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdCategoryId;
		
		public int OrdName;
		
		public int OrdPrice;
		
		public int OrdDiscount;
		
		public int OrdDecreasePrice;
		
		public int OrdQuantity;
		
		public int OrdPromotionPercent;
		
		public int OrdStartEndPromotion;
		
		public int OrdEndDatePromotion;
		
		public int OrdProductStatus;
		
		public int OrdStockStatus;
		
		public int OrdShow;
		
		public int OrdPromotionInfo;
		
		public int OrdCustomInfoFirst;
		
		public int OrdCustomInfoSecond;
		
		public int OrdCustomInfoThird;
		
		public int OrdImagePath;
		
		public int OrdProviderName;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdCategoryId = reader.GetOrdinal("CategoryId");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdPrice = reader.GetOrdinal("Price");
	        	
	    	OrdDiscount = reader.GetOrdinal("Discount");
	        	
	    	OrdDecreasePrice = reader.GetOrdinal("DecreasePrice");
	        	
	    	OrdQuantity = reader.GetOrdinal("Quantity");
	        	
	    	OrdPromotionPercent = reader.GetOrdinal("PromotionPercent");
	        	
	    	OrdStartEndPromotion = reader.GetOrdinal("StartEndPromotion");
	        	
	    	OrdEndDatePromotion = reader.GetOrdinal("EndDatePromotion");
	        	
	    	OrdProductStatus = reader.GetOrdinal("ProductStatus");
	        	
	    	OrdStockStatus = reader.GetOrdinal("StockStatus");
	        	
	    	OrdShow = reader.GetOrdinal("Show");
	        	
	    	OrdPromotionInfo = reader.GetOrdinal("PromotionInfo");
	        	
	    	OrdCustomInfoFirst = reader.GetOrdinal("CustomInfoFirst");
	        	
	    	OrdCustomInfoSecond = reader.GetOrdinal("CustomInfoSecond");
	        	
	    	OrdCustomInfoThird = reader.GetOrdinal("CustomInfoThird");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        	
	    	OrdProviderName = reader.GetOrdinal("ProviderName");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductPromotionTopListDto dTOParserProductPromotionTopList = new ProductPromotionTopListDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { dTOParserProductPromotionTopList.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdCategoryId)) { dTOParserProductPromotionTopList.CategoryId = reader.GetString(OrdCategoryId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserProductPromotionTopList.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdPrice)) { dTOParserProductPromotionTopList.Price = reader.GetDecimal(OrdPrice); }
	        	
	    	if (!reader.IsDBNull(OrdDiscount)) { dTOParserProductPromotionTopList.Discount = reader.GetDouble(OrdDiscount); }
	        	
	    	if (!reader.IsDBNull(OrdDecreasePrice)) { dTOParserProductPromotionTopList.DecreasePrice = reader.GetDecimal(OrdDecreasePrice); }
	        	
	    	if (!reader.IsDBNull(OrdQuantity)) { dTOParserProductPromotionTopList.Quantity = reader.GetInt32(OrdQuantity); }
	        	
	    	if (!reader.IsDBNull(OrdPromotionPercent)) { dTOParserProductPromotionTopList.PromotionPercent = reader.GetInt32(OrdPromotionPercent); }
	        	
	    	if (!reader.IsDBNull(OrdStartEndPromotion)) { dTOParserProductPromotionTopList.StartEndPromotion = reader.GetDateTime(OrdStartEndPromotion); }
	        	
	    	if (!reader.IsDBNull(OrdEndDatePromotion)) { dTOParserProductPromotionTopList.EndDatePromotion = reader.GetDateTime(OrdEndDatePromotion); }
	        	
	    	if (!reader.IsDBNull(OrdProductStatus)) { dTOParserProductPromotionTopList.ProductStatus = reader.GetString(OrdProductStatus); }
	        	
	    	if (!reader.IsDBNull(OrdStockStatus)) { dTOParserProductPromotionTopList.StockStatus = reader.GetBoolean(OrdStockStatus); }
	        	
	    	if (!reader.IsDBNull(OrdShow)) { dTOParserProductPromotionTopList.Show = reader.GetBoolean(OrdShow); }
	        	
	    	if (!reader.IsDBNull(OrdPromotionInfo)) { dTOParserProductPromotionTopList.PromotionInfo = reader.GetString(OrdPromotionInfo); }
	        	
	    	if (!reader.IsDBNull(OrdCustomInfoFirst)) { dTOParserProductPromotionTopList.CustomInfoFirst = reader.GetString(OrdCustomInfoFirst); }
	        	
	    	if (!reader.IsDBNull(OrdCustomInfoSecond)) { dTOParserProductPromotionTopList.CustomInfoSecond = reader.GetString(OrdCustomInfoSecond); }
	        	
	    	if (!reader.IsDBNull(OrdCustomInfoThird)) { dTOParserProductPromotionTopList.CustomInfoThird = reader.GetString(OrdCustomInfoThird); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { dTOParserProductPromotionTopList.ImagePath = reader.GetString(OrdImagePath); }
	        	
	    	if (!reader.IsDBNull(OrdProviderName)) { dTOParserProductPromotionTopList.ProviderName = reader.GetString(OrdProviderName); }
	        			
			dTOParserProductPromotionTopList.IsNew = false;
			
			return dTOParserProductPromotionTopList;
		}
	}
	
		
    public class DTOParserProductRateByCateTopListPaging : DTOParser
    {			
		
		public int OrdSTT;
		
		public int OrdId;
		
		public int OrdCategoryId;
		
		public int OrdName;
		
		public int OrdPrice;
		
		public int OrdQuantity;
		
		public int OrdUsePercentage;
		
		public int OrdDiscountPercentage;
		
		public int OrdDiscountAmount;
		
		public int OrdPromotionPrice;
		
		public int OrdGiftId;
		
		public int OrdProductStatus;
		
		public int OrdStockStatus;
		
		public int OrdShow;
		
		public int OrdCustomInfoFirst;
		
		public int OrdCustomInfoSecond;
		
		public int OrdCustomInfoThird;
		
		public int OrdCreateDate;
		
		public int OrdImagePath;
		
		public int OrdProviderName;
		
		public int OrdBreadCrumb;
		
		public int OrdTotalView;
		
		public int OrdAverageRate;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdSTT = reader.GetOrdinal("STT");
	        	
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdCategoryId = reader.GetOrdinal("CategoryId");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdPrice = reader.GetOrdinal("Price");
	        	
	    	OrdQuantity = reader.GetOrdinal("Quantity");
	        	
	    	OrdUsePercentage = reader.GetOrdinal("UsePercentage");
	        	
	    	OrdDiscountPercentage = reader.GetOrdinal("DiscountPercentage");
	        	
	    	OrdDiscountAmount = reader.GetOrdinal("DiscountAmount");
	        	
	    	OrdPromotionPrice = reader.GetOrdinal("PromotionPrice");
	        	
	    	OrdGiftId = reader.GetOrdinal("GiftId");
	        	
	    	OrdProductStatus = reader.GetOrdinal("ProductStatus");
	        	
	    	OrdStockStatus = reader.GetOrdinal("StockStatus");
	        	
	    	OrdShow = reader.GetOrdinal("Show");
	        	
	    	OrdCustomInfoFirst = reader.GetOrdinal("CustomInfoFirst");
	        	
	    	OrdCustomInfoSecond = reader.GetOrdinal("CustomInfoSecond");
	        	
	    	OrdCustomInfoThird = reader.GetOrdinal("CustomInfoThird");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        	
	    	OrdProviderName = reader.GetOrdinal("ProviderName");
	        	
	    	OrdBreadCrumb = reader.GetOrdinal("BreadCrumb");
	        	
	    	OrdTotalView = reader.GetOrdinal("TotalView");
	        	
	    	OrdAverageRate = reader.GetOrdinal("AverageRate");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductRateByCateTopListPagingDto dTOParserProductRateByCateTopListPaging = new ProductRateByCateTopListPagingDto();
			
				
	    	if (!reader.IsDBNull(OrdSTT)) { dTOParserProductRateByCateTopListPaging.STT = reader.GetInt32(OrdSTT); }
	        	
	    	if (!reader.IsDBNull(OrdId)) { dTOParserProductRateByCateTopListPaging.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdCategoryId)) { dTOParserProductRateByCateTopListPaging.CategoryId = reader.GetString(OrdCategoryId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserProductRateByCateTopListPaging.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdPrice)) { dTOParserProductRateByCateTopListPaging.Price = reader.GetDecimal(OrdPrice); }
	        	
	    	if (!reader.IsDBNull(OrdQuantity)) { dTOParserProductRateByCateTopListPaging.Quantity = reader.GetInt32(OrdQuantity); }
	        	
	    	if (!reader.IsDBNull(OrdUsePercentage)) { dTOParserProductRateByCateTopListPaging.UsePercentage = reader.GetBoolean(OrdUsePercentage); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountPercentage)) { dTOParserProductRateByCateTopListPaging.DiscountPercentage = reader.GetDecimal(OrdDiscountPercentage); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountAmount)) { dTOParserProductRateByCateTopListPaging.DiscountAmount = reader.GetDecimal(OrdDiscountAmount); }
	        	
	    	if (!reader.IsDBNull(OrdPromotionPrice)) { dTOParserProductRateByCateTopListPaging.PromotionPrice = reader.GetDecimal(OrdPromotionPrice); }
	        	
	    	if (!reader.IsDBNull(OrdGiftId)) { dTOParserProductRateByCateTopListPaging.GiftId = reader.GetInt32(OrdGiftId); }
	        	
	    	if (!reader.IsDBNull(OrdProductStatus)) { dTOParserProductRateByCateTopListPaging.ProductStatus = reader.GetString(OrdProductStatus); }
	        	
	    	if (!reader.IsDBNull(OrdStockStatus)) { dTOParserProductRateByCateTopListPaging.StockStatus = reader.GetBoolean(OrdStockStatus); }
	        	
	    	if (!reader.IsDBNull(OrdShow)) { dTOParserProductRateByCateTopListPaging.Show = reader.GetBoolean(OrdShow); }
	        	
	    	if (!reader.IsDBNull(OrdCustomInfoFirst)) { dTOParserProductRateByCateTopListPaging.CustomInfoFirst = reader.GetString(OrdCustomInfoFirst); }
	        	
	    	if (!reader.IsDBNull(OrdCustomInfoSecond)) { dTOParserProductRateByCateTopListPaging.CustomInfoSecond = reader.GetString(OrdCustomInfoSecond); }
	        	
	    	if (!reader.IsDBNull(OrdCustomInfoThird)) { dTOParserProductRateByCateTopListPaging.CustomInfoThird = reader.GetString(OrdCustomInfoThird); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { dTOParserProductRateByCateTopListPaging.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { dTOParserProductRateByCateTopListPaging.ImagePath = reader.GetString(OrdImagePath); }
	        	
	    	if (!reader.IsDBNull(OrdProviderName)) { dTOParserProductRateByCateTopListPaging.ProviderName = reader.GetString(OrdProviderName); }
	        	
	    	if (!reader.IsDBNull(OrdBreadCrumb)) { dTOParserProductRateByCateTopListPaging.BreadCrumb = reader.GetString(OrdBreadCrumb); }
	        	
	    	if (!reader.IsDBNull(OrdTotalView)) { dTOParserProductRateByCateTopListPaging.TotalView = reader.GetInt32(OrdTotalView); }
	        	
	    	if (!reader.IsDBNull(OrdAverageRate)) { dTOParserProductRateByCateTopListPaging.AverageRate = reader.GetDouble(OrdAverageRate); }
	        			
			dTOParserProductRateByCateTopListPaging.IsNew = false;
			
			return dTOParserProductRateByCateTopListPaging;
		}
	}
	
		
    public class DTOParserProductSizeListByPid : DTOParser
    {			
		
		public int OrdSizeId;
		
		public int OrdProductId;
		
		public int OrdSizePrice;
		
		public int OrdCreateDate;
		
		public int OrdShow;
		
		public int OrdSizeName;
		
		public int OrdCode;
		
		public int OrdOrder;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdSizeId = reader.GetOrdinal("SizeId");
	        	
	    	OrdProductId = reader.GetOrdinal("ProductId");
	        	
	    	OrdSizePrice = reader.GetOrdinal("SizePrice");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdShow = reader.GetOrdinal("Show");
	        	
	    	OrdSizeName = reader.GetOrdinal("SizeName");
	        	
	    	OrdCode = reader.GetOrdinal("Code");
	        	
	    	OrdOrder = reader.GetOrdinal("Order");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductSizeListByPidDto dTOParserProductSizeListByPid = new ProductSizeListByPidDto();
			
				
	    	if (!reader.IsDBNull(OrdSizeId)) { dTOParserProductSizeListByPid.SizeId = reader.GetString(OrdSizeId); }
	        	
	    	if (!reader.IsDBNull(OrdProductId)) { dTOParserProductSizeListByPid.ProductId = reader.GetString(OrdProductId); }
	        	
	    	if (!reader.IsDBNull(OrdSizePrice)) { dTOParserProductSizeListByPid.SizePrice = reader.GetDecimal(OrdSizePrice); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { dTOParserProductSizeListByPid.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdShow)) { dTOParserProductSizeListByPid.Show = reader.GetBoolean(OrdShow); }
	        	
	    	if (!reader.IsDBNull(OrdSizeName)) { dTOParserProductSizeListByPid.SizeName = reader.GetString(OrdSizeName); }
	        	
	    	if (!reader.IsDBNull(OrdCode)) { dTOParserProductSizeListByPid.Code = reader.GetString(OrdCode); }
	        	
	    	if (!reader.IsDBNull(OrdOrder)) { dTOParserProductSizeListByPid.Order = reader.GetInt32(OrdOrder); }
	        			
			dTOParserProductSizeListByPid.IsNew = false;
			
			return dTOParserProductSizeListByPid;
		}
	}
	
		
    public class DTOParserProductSynView : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdBarcode;
		
		public int OrdName;
		
		public int OrdCategoryId;
		
		public int OrdPrice;
		
		public int Ordchk;
		
		public int OrdPriceNew;
		
		public int OrdQuantityNew;
		
		public int OrdQuantity;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdBarcode = reader.GetOrdinal("Barcode");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdCategoryId = reader.GetOrdinal("CategoryId");
	        	
	    	OrdPrice = reader.GetOrdinal("Price");
	        	
	    	Ordchk = reader.GetOrdinal("chk");
	        	
	    	OrdPriceNew = reader.GetOrdinal("PriceNew");
	        	
	    	OrdQuantityNew = reader.GetOrdinal("QuantityNew");
	        	
	    	OrdQuantity = reader.GetOrdinal("Quantity");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProductSynViewDto dTOParserProductSynView = new ProductSynViewDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { dTOParserProductSynView.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdBarcode)) { dTOParserProductSynView.Barcode = reader.GetString(OrdBarcode); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserProductSynView.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdCategoryId)) { dTOParserProductSynView.CategoryId = reader.GetString(OrdCategoryId); }
	        	
	    	if (!reader.IsDBNull(OrdPrice)) { dTOParserProductSynView.Price = reader.GetDecimal(OrdPrice); }
	        	
	    	if (!reader.IsDBNull(Ordchk)) { dTOParserProductSynView.chk = reader.GetString(Ordchk); }
	        	
	    	if (!reader.IsDBNull(OrdPriceNew)) { dTOParserProductSynView.PriceNew = reader.GetString(OrdPriceNew); }
	        	
	    	if (!reader.IsDBNull(OrdQuantityNew)) { dTOParserProductSynView.QuantityNew = reader.GetString(OrdQuantityNew); }
	        	
	    	if (!reader.IsDBNull(OrdQuantity)) { dTOParserProductSynView.Quantity = reader.GetInt32(OrdQuantity); }
	        			
			dTOParserProductSynView.IsNew = false;
			
			return dTOParserProductSynView;
		}
	}
	
		
    public class DTOParserProviderCout : DTOParser
    {			
		
		public int Ordtotal;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	Ordtotal = reader.GetOrdinal("total");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProviderCoutDto dTOParserProviderCout = new ProviderCoutDto();
			
				
	    	if (!reader.IsDBNull(Ordtotal)) { dTOParserProviderCout.total = reader.GetInt32(Ordtotal); }
	        			
			dTOParserProviderCout.IsNew = false;
			
			return dTOParserProviderCout;
		}
	}
	
		
    public class DTOParserProviderList : DTOParser
    {			
		
		public int OrdSTT;
		
		public int OrdId;
		
		public int OrdName;
		
		public int OrdOrdering;
		
		public int OrdDescription;
		
		public int OrdImagePath;
		
		public int OrdShowHome;
		
		public int OrdActive;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdSTT = reader.GetOrdinal("STT");
	        	
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdOrdering = reader.GetOrdinal("Ordering");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        	
	    	OrdShowHome = reader.GetOrdinal("ShowHome");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProviderListDto dTOParserProviderList = new ProviderListDto();
			
				
	    	if (!reader.IsDBNull(OrdSTT)) { dTOParserProviderList.STT = reader.GetInt32(OrdSTT); }
	        	
	    	if (!reader.IsDBNull(OrdId)) { dTOParserProviderList.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserProviderList.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdOrdering)) { dTOParserProviderList.Ordering = reader.GetInt32(OrdOrdering); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { dTOParserProviderList.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { dTOParserProviderList.ImagePath = reader.GetString(OrdImagePath); }
	        	
	    	if (!reader.IsDBNull(OrdShowHome)) { dTOParserProviderList.ShowHome = reader.GetBoolean(OrdShowHome); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { dTOParserProviderList.Active = reader.GetString(OrdActive); }
	        			
			dTOParserProviderList.IsNew = false;
			
			return dTOParserProviderList;
		}
	}
	
		
    public class DTOParserProviderListByLetter : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdName;
		
		public int OrdImagePath;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProviderListByLetterDto dTOParserProviderListByLetter = new ProviderListByLetterDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { dTOParserProviderListByLetter.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserProviderListByLetter.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { dTOParserProviderListByLetter.ImagePath = reader.GetString(OrdImagePath); }
	        			
			dTOParserProviderListByLetter.IsNew = false;
			
			return dTOParserProviderListByLetter;
		}
	}
	
		
    public class DTOParserProviderListCateHome : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdName;
		
		public int OrdImagePath;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProviderListCateHomeDto dTOParserProviderListCateHome = new ProviderListCateHomeDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { dTOParserProviderListCateHome.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserProviderListCateHome.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { dTOParserProviderListCateHome.ImagePath = reader.GetString(OrdImagePath); }
	        			
			dTOParserProviderListCateHome.IsNew = false;
			
			return dTOParserProviderListCateHome;
		}
	}
	
		
    public class DTOParserProviderListHotCate : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdName;
		
		public int OrdImagePath;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProviderListHotCateDto dTOParserProviderListHotCate = new ProviderListHotCateDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { dTOParserProviderListHotCate.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserProviderListHotCate.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { dTOParserProviderListHotCate.ImagePath = reader.GetString(OrdImagePath); }
	        			
			dTOParserProviderListHotCate.IsNew = false;
			
			return dTOParserProviderListHotCate;
		}
	}
	
		
    public class DTOParserProviderListName : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdName;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ProviderListNameDto dTOParserProviderListName = new ProviderListNameDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { dTOParserProviderListName.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserProviderListName.Name = reader.GetString(OrdName); }
	        			
			dTOParserProviderListName.IsNew = false;
			
			return dTOParserProviderListName;
		}
	}
	
		
    public class DTOParserSizeList : DTOParser
    {			
		
		public int OrdSTT;
		
		public int OrdId;
		
		public int OrdSizeName;
		
		public int OrdCreateDate;
		
		public int OrdActive;
		
		public int OrdCode;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdSTT = reader.GetOrdinal("STT");
	        	
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdSizeName = reader.GetOrdinal("SizeName");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        	
	    	OrdCode = reader.GetOrdinal("Code");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			SizeListDto dTOParserSizeList = new SizeListDto();
			
				
	    	if (!reader.IsDBNull(OrdSTT)) { dTOParserSizeList.STT = reader.GetInt32(OrdSTT); }
	        	
	    	if (!reader.IsDBNull(OrdId)) { dTOParserSizeList.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdSizeName)) { dTOParserSizeList.SizeName = reader.GetString(OrdSizeName); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { dTOParserSizeList.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { dTOParserSizeList.Active = reader.GetBoolean(OrdActive); }
	        	
	    	if (!reader.IsDBNull(OrdCode)) { dTOParserSizeList.Code = reader.GetString(OrdCode); }
	        			
			dTOParserSizeList.IsNew = false;
			
			return dTOParserSizeList;
		}
	}
	
		
    public class DTOParserUserPaging : DTOParser
    {			
		
		public int OrdSTT;
		
		public int OrdId;
		
		public int OrdUserName;
		
		public int OrdPassword;
		
		public int OrdFullName;
		
		public int OrdMobile;
		
		public int OrdEmail;
		
		public int OrdAddress;
		
		public int OrdCreateDate;
		
		public int OrdActive;
		
		public int OrdPasswordSalt;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdSTT = reader.GetOrdinal("STT");
	        	
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdUserName = reader.GetOrdinal("UserName");
	        	
	    	OrdPassword = reader.GetOrdinal("Password");
	        	
	    	OrdFullName = reader.GetOrdinal("FullName");
	        	
	    	OrdMobile = reader.GetOrdinal("Mobile");
	        	
	    	OrdEmail = reader.GetOrdinal("Email");
	        	
	    	OrdAddress = reader.GetOrdinal("Address");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        	
	    	OrdPasswordSalt = reader.GetOrdinal("PasswordSalt");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			UserPagingDto dTOParserUserPaging = new UserPagingDto();
			
				
	    	if (!reader.IsDBNull(OrdSTT)) { dTOParserUserPaging.STT = reader.GetInt32(OrdSTT); }
	        	
	    	if (!reader.IsDBNull(OrdId)) { dTOParserUserPaging.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdUserName)) { dTOParserUserPaging.UserName = reader.GetString(OrdUserName); }
	        	
	    	if (!reader.IsDBNull(OrdPassword)) { dTOParserUserPaging.Password = reader.GetString(OrdPassword); }
	        	
	    	if (!reader.IsDBNull(OrdFullName)) { dTOParserUserPaging.FullName = reader.GetString(OrdFullName); }
	        	
	    	if (!reader.IsDBNull(OrdMobile)) { dTOParserUserPaging.Mobile = reader.GetString(OrdMobile); }
	        	
	    	if (!reader.IsDBNull(OrdEmail)) { dTOParserUserPaging.Email = reader.GetString(OrdEmail); }
	        	
	    	if (!reader.IsDBNull(OrdAddress)) { dTOParserUserPaging.Address = reader.GetString(OrdAddress); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { dTOParserUserPaging.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { dTOParserUserPaging.Active = reader.GetString(OrdActive); }
	        	
	    	if (!reader.IsDBNull(OrdPasswordSalt)) { dTOParserUserPaging.PasswordSalt = reader.GetString(OrdPasswordSalt); }
	        			
			dTOParserUserPaging.IsNew = false;
			
			return dTOParserUserPaging;
		}
	}
	
		
    public class DTOParserV_DiscountPromotionCate : DTOParser
    {			
		
		public int OrdDiscountId;
		
		public int OrdName;
		
		public int OrdDiscountTypeId;
		
		public int OrdUsePercentage;
		
		public int OrdDiscountPercentage;
		
		public int OrdDiscountAmount;
		
		public int OrdStartDate;
		
		public int OrdEndDate;
		
		public int OrdDescription;
		
		public int OrdCategoryId;
		
		public int OrdBreadCrumb;
		
		public int OrdProductName;
		
		public int OrdProductId;
		
		public int OrdCatePromotionPrice;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdDiscountId = reader.GetOrdinal("DiscountId");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdDiscountTypeId = reader.GetOrdinal("DiscountTypeId");
	        	
	    	OrdUsePercentage = reader.GetOrdinal("UsePercentage");
	        	
	    	OrdDiscountPercentage = reader.GetOrdinal("DiscountPercentage");
	        	
	    	OrdDiscountAmount = reader.GetOrdinal("DiscountAmount");
	        	
	    	OrdStartDate = reader.GetOrdinal("StartDate");
	        	
	    	OrdEndDate = reader.GetOrdinal("EndDate");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdCategoryId = reader.GetOrdinal("CategoryId");
	        	
	    	OrdBreadCrumb = reader.GetOrdinal("BreadCrumb");
	        	
	    	OrdProductName = reader.GetOrdinal("ProductName");
	        	
	    	OrdProductId = reader.GetOrdinal("ProductId");
	        	
	    	OrdCatePromotionPrice = reader.GetOrdinal("CatePromotionPrice");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			V_DiscountPromotionCateDto dTOParserV_DiscountPromotionCate = new V_DiscountPromotionCateDto();
			
				
	    	if (!reader.IsDBNull(OrdDiscountId)) { dTOParserV_DiscountPromotionCate.DiscountId = reader.GetInt32(OrdDiscountId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserV_DiscountPromotionCate.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountTypeId)) { dTOParserV_DiscountPromotionCate.DiscountTypeId = reader.GetInt32(OrdDiscountTypeId); }
	        	
	    	if (!reader.IsDBNull(OrdUsePercentage)) { dTOParserV_DiscountPromotionCate.UsePercentage = reader.GetBoolean(OrdUsePercentage); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountPercentage)) { dTOParserV_DiscountPromotionCate.DiscountPercentage = reader.GetDecimal(OrdDiscountPercentage); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountAmount)) { dTOParserV_DiscountPromotionCate.DiscountAmount = reader.GetDecimal(OrdDiscountAmount); }
	        	
	    	if (!reader.IsDBNull(OrdStartDate)) { dTOParserV_DiscountPromotionCate.StartDate = reader.GetDateTime(OrdStartDate); }
	        	
	    	if (!reader.IsDBNull(OrdEndDate)) { dTOParserV_DiscountPromotionCate.EndDate = reader.GetDateTime(OrdEndDate); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { dTOParserV_DiscountPromotionCate.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdCategoryId)) { dTOParserV_DiscountPromotionCate.CategoryId = reader.GetString(OrdCategoryId); }
	        	
	    	if (!reader.IsDBNull(OrdBreadCrumb)) { dTOParserV_DiscountPromotionCate.BreadCrumb = reader.GetString(OrdBreadCrumb); }
	        	
	    	if (!reader.IsDBNull(OrdProductName)) { dTOParserV_DiscountPromotionCate.ProductName = reader.GetString(OrdProductName); }
	        	
	    	if (!reader.IsDBNull(OrdProductId)) { dTOParserV_DiscountPromotionCate.ProductId = reader.GetString(OrdProductId); }
	        	
	    	if (!reader.IsDBNull(OrdCatePromotionPrice)) { dTOParserV_DiscountPromotionCate.CatePromotionPrice = reader.GetDecimal(OrdCatePromotionPrice); }
	        			
			dTOParserV_DiscountPromotionCate.IsNew = false;
			
			return dTOParserV_DiscountPromotionCate;
		}
	}
	
		
    public class DTOParserV_DiscountPromotionProduct : DTOParser
    {			
		
		public int OrdDiscountId;
		
		public int OrdName;
		
		public int OrdDiscountTypeId;
		
		public int OrdUsePercentage;
		
		public int OrdDiscountPercentage;
		
		public int OrdDiscountAmount;
		
		public int OrdStartDate;
		
		public int OrdEndDate;
		
		public int OrdDescription;
		
		public int OrdProductId;
		
		public int OrdPromotionPrice;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdDiscountId = reader.GetOrdinal("DiscountId");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdDiscountTypeId = reader.GetOrdinal("DiscountTypeId");
	        	
	    	OrdUsePercentage = reader.GetOrdinal("UsePercentage");
	        	
	    	OrdDiscountPercentage = reader.GetOrdinal("DiscountPercentage");
	        	
	    	OrdDiscountAmount = reader.GetOrdinal("DiscountAmount");
	        	
	    	OrdStartDate = reader.GetOrdinal("StartDate");
	        	
	    	OrdEndDate = reader.GetOrdinal("EndDate");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdProductId = reader.GetOrdinal("ProductId");
	        	
	    	OrdPromotionPrice = reader.GetOrdinal("PromotionPrice");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			V_DiscountPromotionProductDto dTOParserV_DiscountPromotionProduct = new V_DiscountPromotionProductDto();
			
				
	    	if (!reader.IsDBNull(OrdDiscountId)) { dTOParserV_DiscountPromotionProduct.DiscountId = reader.GetInt32(OrdDiscountId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserV_DiscountPromotionProduct.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountTypeId)) { dTOParserV_DiscountPromotionProduct.DiscountTypeId = reader.GetInt32(OrdDiscountTypeId); }
	        	
	    	if (!reader.IsDBNull(OrdUsePercentage)) { dTOParserV_DiscountPromotionProduct.UsePercentage = reader.GetBoolean(OrdUsePercentage); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountPercentage)) { dTOParserV_DiscountPromotionProduct.DiscountPercentage = reader.GetDecimal(OrdDiscountPercentage); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountAmount)) { dTOParserV_DiscountPromotionProduct.DiscountAmount = reader.GetDecimal(OrdDiscountAmount); }
	        	
	    	if (!reader.IsDBNull(OrdStartDate)) { dTOParserV_DiscountPromotionProduct.StartDate = reader.GetDateTime(OrdStartDate); }
	        	
	    	if (!reader.IsDBNull(OrdEndDate)) { dTOParserV_DiscountPromotionProduct.EndDate = reader.GetDateTime(OrdEndDate); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { dTOParserV_DiscountPromotionProduct.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdProductId)) { dTOParserV_DiscountPromotionProduct.ProductId = reader.GetString(OrdProductId); }
	        	
	    	if (!reader.IsDBNull(OrdPromotionPrice)) { dTOParserV_DiscountPromotionProduct.PromotionPrice = reader.GetDecimal(OrdPromotionPrice); }
	        			
			dTOParserV_DiscountPromotionProduct.IsNew = false;
			
			return dTOParserV_DiscountPromotionProduct;
		}
	}
	
		
    public class DTOParserV_GiftPromotionCate : DTOParser
    {			
		
		public int OrdGiftId;
		
		public int OrdName;
		
		public int OrdGiftTypeId;
		
		public int OrdDescription;
		
		public int OrdStartDate;
		
		public int OrdEndDate;
		
		public int OrdProductId;
		
		public int OrdGiftCategoryId;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdGiftId = reader.GetOrdinal("GiftId");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdGiftTypeId = reader.GetOrdinal("GiftTypeId");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdStartDate = reader.GetOrdinal("StartDate");
	        	
	    	OrdEndDate = reader.GetOrdinal("EndDate");
	        	
	    	OrdProductId = reader.GetOrdinal("ProductId");
	        	
	    	OrdGiftCategoryId = reader.GetOrdinal("GiftCategoryId");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			V_GiftPromotionCateDto dTOParserV_GiftPromotionCate = new V_GiftPromotionCateDto();
			
				
	    	if (!reader.IsDBNull(OrdGiftId)) { dTOParserV_GiftPromotionCate.GiftId = reader.GetInt32(OrdGiftId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserV_GiftPromotionCate.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdGiftTypeId)) { dTOParserV_GiftPromotionCate.GiftTypeId = reader.GetInt32(OrdGiftTypeId); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { dTOParserV_GiftPromotionCate.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdStartDate)) { dTOParserV_GiftPromotionCate.StartDate = reader.GetDateTime(OrdStartDate); }
	        	
	    	if (!reader.IsDBNull(OrdEndDate)) { dTOParserV_GiftPromotionCate.EndDate = reader.GetDateTime(OrdEndDate); }
	        	
	    	if (!reader.IsDBNull(OrdProductId)) { dTOParserV_GiftPromotionCate.ProductId = reader.GetString(OrdProductId); }
	        	
	    	if (!reader.IsDBNull(OrdGiftCategoryId)) { dTOParserV_GiftPromotionCate.GiftCategoryId = reader.GetString(OrdGiftCategoryId); }
	        			
			dTOParserV_GiftPromotionCate.IsNew = false;
			
			return dTOParserV_GiftPromotionCate;
		}
	}
	
		
    public class DTOParserV_GiftPromotionProduct : DTOParser
    {			
		
		public int OrdGiftId;
		
		public int OrdName;
		
		public int OrdGiftTypeId;
		
		public int OrdDescription;
		
		public int OrdStartDate;
		
		public int OrdEndDate;
		
		public int OrdProductId;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdGiftId = reader.GetOrdinal("GiftId");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdGiftTypeId = reader.GetOrdinal("GiftTypeId");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdStartDate = reader.GetOrdinal("StartDate");
	        	
	    	OrdEndDate = reader.GetOrdinal("EndDate");
	        	
	    	OrdProductId = reader.GetOrdinal("ProductId");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			V_GiftPromotionProductDto dTOParserV_GiftPromotionProduct = new V_GiftPromotionProductDto();
			
				
	    	if (!reader.IsDBNull(OrdGiftId)) { dTOParserV_GiftPromotionProduct.GiftId = reader.GetInt32(OrdGiftId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserV_GiftPromotionProduct.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdGiftTypeId)) { dTOParserV_GiftPromotionProduct.GiftTypeId = reader.GetInt32(OrdGiftTypeId); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { dTOParserV_GiftPromotionProduct.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdStartDate)) { dTOParserV_GiftPromotionProduct.StartDate = reader.GetDateTime(OrdStartDate); }
	        	
	    	if (!reader.IsDBNull(OrdEndDate)) { dTOParserV_GiftPromotionProduct.EndDate = reader.GetDateTime(OrdEndDate); }
	        	
	    	if (!reader.IsDBNull(OrdProductId)) { dTOParserV_GiftPromotionProduct.ProductId = reader.GetString(OrdProductId); }
	        			
			dTOParserV_GiftPromotionProduct.IsNew = false;
			
			return dTOParserV_GiftPromotionProduct;
		}
	}
	
		
    public class DTOParserVCProCateTempMapping : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdTemplateId;
		
		public int OrdProductCateId;
		
		public int OrdIsOnHomePage;
		
		public int OrdDescription;
		
		public int OrdTempDescription;
		
		public int OrdTempContent;
		
		public int OrdCateName;
		
		public int OrdDepth;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdTemplateId = reader.GetOrdinal("TemplateId");
	        	
	    	OrdProductCateId = reader.GetOrdinal("ProductCateId");
	        	
	    	OrdIsOnHomePage = reader.GetOrdinal("IsOnHomePage");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdTempDescription = reader.GetOrdinal("TempDescription");
	        	
	    	OrdTempContent = reader.GetOrdinal("TempContent");
	        	
	    	OrdCateName = reader.GetOrdinal("CateName");
	        	
	    	OrdDepth = reader.GetOrdinal("Depth");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			VCProCateTempMappingDto dTOParserVCProCateTempMapping = new VCProCateTempMappingDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { dTOParserVCProCateTempMapping.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdTemplateId)) { dTOParserVCProCateTempMapping.TemplateId = reader.GetInt32(OrdTemplateId); }
	        	
	    	if (!reader.IsDBNull(OrdProductCateId)) { dTOParserVCProCateTempMapping.ProductCateId = reader.GetString(OrdProductCateId); }
	        	
	    	if (!reader.IsDBNull(OrdIsOnHomePage)) { dTOParserVCProCateTempMapping.IsOnHomePage = reader.GetBoolean(OrdIsOnHomePage); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { dTOParserVCProCateTempMapping.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdTempDescription)) { dTOParserVCProCateTempMapping.TempDescription = reader.GetString(OrdTempDescription); }
	        	
	    	if (!reader.IsDBNull(OrdTempContent)) { dTOParserVCProCateTempMapping.TempContent = reader.GetString(OrdTempContent); }
	        	
	    	if (!reader.IsDBNull(OrdCateName)) { dTOParserVCProCateTempMapping.CateName = reader.GetString(OrdCateName); }
	        	
	    	if (!reader.IsDBNull(OrdDepth)) { dTOParserVCProCateTempMapping.Depth = reader.GetInt32(OrdDepth); }
	        			
			dTOParserVCProCateTempMapping.IsNew = false;
			
			return dTOParserVCProCateTempMapping;
		}
	}
	
		
    public class DTOParserViewBanner : DTOParser
    {			
		
		public int OrdSTT;
		
		public int OrdBannerId;
		
		public int OrdSubject;
		
		public int OrdCreateDate;
		
		public int OrdStartDate;
		
		public int OrdExpireDate;
		
		public int OrdActive;
		
		public int OrdUpdateDate;
		
		public int OrdPageName;
		
		public int OrdPositionName;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdSTT = reader.GetOrdinal("STT");
	        	
	    	OrdBannerId = reader.GetOrdinal("BannerId");
	        	
	    	OrdSubject = reader.GetOrdinal("Subject");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdStartDate = reader.GetOrdinal("StartDate");
	        	
	    	OrdExpireDate = reader.GetOrdinal("ExpireDate");
	        	
	    	OrdActive = reader.GetOrdinal("Active");
	        	
	    	OrdUpdateDate = reader.GetOrdinal("UpdateDate");
	        	
	    	OrdPageName = reader.GetOrdinal("PageName");
	        	
	    	OrdPositionName = reader.GetOrdinal("PositionName");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ViewBannerDto dTOParserViewBanner = new ViewBannerDto();
			
				
	    	if (!reader.IsDBNull(OrdSTT)) { dTOParserViewBanner.STT = reader.GetInt32(OrdSTT); }
	        	
	    	if (!reader.IsDBNull(OrdBannerId)) { dTOParserViewBanner.BannerId = reader.GetString(OrdBannerId); }
	        	
	    	if (!reader.IsDBNull(OrdSubject)) { dTOParserViewBanner.Subject = reader.GetString(OrdSubject); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { dTOParserViewBanner.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdStartDate)) { dTOParserViewBanner.StartDate = reader.GetDateTime(OrdStartDate); }
	        	
	    	if (!reader.IsDBNull(OrdExpireDate)) { dTOParserViewBanner.ExpireDate = reader.GetDateTime(OrdExpireDate); }
	        	
	    	if (!reader.IsDBNull(OrdActive)) { dTOParserViewBanner.Active = reader.GetBoolean(OrdActive); }
	        	
	    	if (!reader.IsDBNull(OrdUpdateDate)) { dTOParserViewBanner.UpdateDate = reader.GetDateTime(OrdUpdateDate); }
	        	
	    	if (!reader.IsDBNull(OrdPageName)) { dTOParserViewBanner.PageName = reader.GetString(OrdPageName); }
	        	
	    	if (!reader.IsDBNull(OrdPositionName)) { dTOParserViewBanner.PositionName = reader.GetString(OrdPositionName); }
	        			
			dTOParserViewBanner.IsNew = false;
			
			return dTOParserViewBanner;
		}
	}
	
		
    public class DTOParserViewBannerClient : DTOParser
    {			
		
		public int OrdBannerId;
		
		public int OrdSubject;
		
		public int OrdStartDate;
		
		public int OrdExpireDate;
		
		public int OrdPageId;
		
		public int OrdPageName;
		
		public int OrdPageKey;
		
		public int OrdPositionId;
		
		public int OrdPositionName;
		
		public int OrdPositionKey;
		
		public int OrdBannerImageId;
		
		public int OrdTitle;
		
		public int OrdDescription;
		
		public int OrdUrl;
		
		public int OrdUrlStatistic;
		
		public int OrdShow;
		
		public int OrdWidth;
		
		public int OrdHeight;
		
		public int OrdImagePath;
		
		public int OrdBannerImageOrder;
		
		public int OrdNoFollow;
		
		public int OrdCateName;
		
		public int OrdCategoryId;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdBannerId = reader.GetOrdinal("BannerId");
	        	
	    	OrdSubject = reader.GetOrdinal("Subject");
	        	
	    	OrdStartDate = reader.GetOrdinal("StartDate");
	        	
	    	OrdExpireDate = reader.GetOrdinal("ExpireDate");
	        	
	    	OrdPageId = reader.GetOrdinal("PageId");
	        	
	    	OrdPageName = reader.GetOrdinal("PageName");
	        	
	    	OrdPageKey = reader.GetOrdinal("PageKey");
	        	
	    	OrdPositionId = reader.GetOrdinal("PositionId");
	        	
	    	OrdPositionName = reader.GetOrdinal("PositionName");
	        	
	    	OrdPositionKey = reader.GetOrdinal("PositionKey");
	        	
	    	OrdBannerImageId = reader.GetOrdinal("BannerImageId");
	        	
	    	OrdTitle = reader.GetOrdinal("Title");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdUrl = reader.GetOrdinal("Url");
	        	
	    	OrdUrlStatistic = reader.GetOrdinal("UrlStatistic");
	        	
	    	OrdShow = reader.GetOrdinal("Show");
	        	
	    	OrdWidth = reader.GetOrdinal("Width");
	        	
	    	OrdHeight = reader.GetOrdinal("Height");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        	
	    	OrdBannerImageOrder = reader.GetOrdinal("BannerImageOrder");
	        	
	    	OrdNoFollow = reader.GetOrdinal("NoFollow");
	        	
	    	OrdCateName = reader.GetOrdinal("CateName");
	        	
	    	OrdCategoryId = reader.GetOrdinal("CategoryId");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ViewBannerClientDto dTOParserViewBannerClient = new ViewBannerClientDto();
			
				
	    	if (!reader.IsDBNull(OrdBannerId)) { dTOParserViewBannerClient.BannerId = reader.GetString(OrdBannerId); }
	        	
	    	if (!reader.IsDBNull(OrdSubject)) { dTOParserViewBannerClient.Subject = reader.GetString(OrdSubject); }
	        	
	    	if (!reader.IsDBNull(OrdStartDate)) { dTOParserViewBannerClient.StartDate = reader.GetDateTime(OrdStartDate); }
	        	
	    	if (!reader.IsDBNull(OrdExpireDate)) { dTOParserViewBannerClient.ExpireDate = reader.GetDateTime(OrdExpireDate); }
	        	
	    	if (!reader.IsDBNull(OrdPageId)) { dTOParserViewBannerClient.PageId = reader.GetInt32(OrdPageId); }
	        	
	    	if (!reader.IsDBNull(OrdPageName)) { dTOParserViewBannerClient.PageName = reader.GetString(OrdPageName); }
	        	
	    	if (!reader.IsDBNull(OrdPageKey)) { dTOParserViewBannerClient.PageKey = reader.GetString(OrdPageKey); }
	        	
	    	if (!reader.IsDBNull(OrdPositionId)) { dTOParserViewBannerClient.PositionId = reader.GetInt32(OrdPositionId); }
	        	
	    	if (!reader.IsDBNull(OrdPositionName)) { dTOParserViewBannerClient.PositionName = reader.GetString(OrdPositionName); }
	        	
	    	if (!reader.IsDBNull(OrdPositionKey)) { dTOParserViewBannerClient.PositionKey = reader.GetString(OrdPositionKey); }
	        	
	    	if (!reader.IsDBNull(OrdBannerImageId)) { dTOParserViewBannerClient.BannerImageId = reader.GetString(OrdBannerImageId); }
	        	
	    	if (!reader.IsDBNull(OrdTitle)) { dTOParserViewBannerClient.Title = reader.GetString(OrdTitle); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { dTOParserViewBannerClient.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdUrl)) { dTOParserViewBannerClient.Url = reader.GetString(OrdUrl); }
	        	
	    	if (!reader.IsDBNull(OrdUrlStatistic)) { dTOParserViewBannerClient.UrlStatistic = reader.GetString(OrdUrlStatistic); }
	        	
	    	if (!reader.IsDBNull(OrdShow)) { dTOParserViewBannerClient.Show = reader.GetBoolean(OrdShow); }
	        	
	    	if (!reader.IsDBNull(OrdWidth)) { dTOParserViewBannerClient.Width = reader.GetInt32(OrdWidth); }
	        	
	    	if (!reader.IsDBNull(OrdHeight)) { dTOParserViewBannerClient.Height = reader.GetInt32(OrdHeight); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { dTOParserViewBannerClient.ImagePath = reader.GetString(OrdImagePath); }
	        	
	    	if (!reader.IsDBNull(OrdBannerImageOrder)) { dTOParserViewBannerClient.BannerImageOrder = reader.GetInt32(OrdBannerImageOrder); }
	        	
	    	if (!reader.IsDBNull(OrdNoFollow)) { dTOParserViewBannerClient.NoFollow = reader.GetBoolean(OrdNoFollow); }
	        	
	    	if (!reader.IsDBNull(OrdCateName)) { dTOParserViewBannerClient.CateName = reader.GetString(OrdCateName); }
	        	
	    	if (!reader.IsDBNull(OrdCategoryId)) { dTOParserViewBannerClient.CategoryId = reader.GetString(OrdCategoryId); }
	        			
			dTOParserViewBannerClient.IsNew = false;
			
			return dTOParserViewBannerClient;
		}
	}
	
		
    public class DTOParserViewCateTemplatePaging : DTOParser
    {			
		
		public int OrdSTT;
		
		public int OrdId;
		
		public int OrdDescription;
		
		public int OrdTempContent;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdSTT = reader.GetOrdinal("STT");
	        	
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdTempContent = reader.GetOrdinal("TempContent");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ViewCateTemplatePagingDto dTOParserViewCateTemplatePaging = new ViewCateTemplatePagingDto();
			
				
	    	if (!reader.IsDBNull(OrdSTT)) { dTOParserViewCateTemplatePaging.STT = reader.GetInt32(OrdSTT); }
	        	
	    	if (!reader.IsDBNull(OrdId)) { dTOParserViewCateTemplatePaging.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { dTOParserViewCateTemplatePaging.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdTempContent)) { dTOParserViewCateTemplatePaging.TempContent = reader.GetString(OrdTempContent); }
	        			
			dTOParserViewCateTemplatePaging.IsNew = false;
			
			return dTOParserViewCateTemplatePaging;
		}
	}
	
		
    public class DTOParserViewConfigPaging : DTOParser
    {			
		
		public int OrdSTT;
		
		public int OrdConfigId;
		
		public int OrdKey;
		
		public int OrdValue;
		
		public int OrdDescription;
		
		public int OrdType;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdSTT = reader.GetOrdinal("STT");
	        	
	    	OrdConfigId = reader.GetOrdinal("ConfigId");
	        	
	    	OrdKey = reader.GetOrdinal("Key");
	        	
	    	OrdValue = reader.GetOrdinal("Value");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdType = reader.GetOrdinal("Type");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ViewConfigPagingDto dTOParserViewConfigPaging = new ViewConfigPagingDto();
			
				
	    	if (!reader.IsDBNull(OrdSTT)) { dTOParserViewConfigPaging.STT = reader.GetInt32(OrdSTT); }
	        	
	    	if (!reader.IsDBNull(OrdConfigId)) { dTOParserViewConfigPaging.ConfigId = reader.GetInt32(OrdConfigId); }
	        	
	    	if (!reader.IsDBNull(OrdKey)) { dTOParserViewConfigPaging.Key = reader.GetString(OrdKey); }
	        	
	    	if (!reader.IsDBNull(OrdValue)) { dTOParserViewConfigPaging.Value = reader.GetString(OrdValue); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { dTOParserViewConfigPaging.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdType)) { dTOParserViewConfigPaging.Type = reader.GetString(OrdType); }
	        			
			dTOParserViewConfigPaging.IsNew = false;
			
			return dTOParserViewConfigPaging;
		}
	}
	
		
    public class DTOParserViewDiscountPaging : DTOParser
    {			
		
		public int OrdSTT;
		
		public int OrdDiscountId;
		
		public int OrdName;
		
		public int OrdDiscountTypeId;
		
		public int OrdUsePercentage;
		
		public int OrdDiscountPercentage;
		
		public int OrdDiscountAmount;
		
		public int OrdStartDate;
		
		public int OrdEndDate;
		
		public int OrdRequiresCouponCode;
		
		public int OrdCouponCode;
		
		public int OrdDiscountLimitationId;
		
		public int OrdLimitationTimes;
		
		public int OrdCreatedDate;
		
		public int OrdUpdatedDate;
		
		public int OrdDiscountTypeName;
		
		public int OrdDiscountLimitName;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdSTT = reader.GetOrdinal("STT");
	        	
	    	OrdDiscountId = reader.GetOrdinal("DiscountId");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdDiscountTypeId = reader.GetOrdinal("DiscountTypeId");
	        	
	    	OrdUsePercentage = reader.GetOrdinal("UsePercentage");
	        	
	    	OrdDiscountPercentage = reader.GetOrdinal("DiscountPercentage");
	        	
	    	OrdDiscountAmount = reader.GetOrdinal("DiscountAmount");
	        	
	    	OrdStartDate = reader.GetOrdinal("StartDate");
	        	
	    	OrdEndDate = reader.GetOrdinal("EndDate");
	        	
	    	OrdRequiresCouponCode = reader.GetOrdinal("RequiresCouponCode");
	        	
	    	OrdCouponCode = reader.GetOrdinal("CouponCode");
	        	
	    	OrdDiscountLimitationId = reader.GetOrdinal("DiscountLimitationId");
	        	
	    	OrdLimitationTimes = reader.GetOrdinal("LimitationTimes");
	        	
	    	OrdCreatedDate = reader.GetOrdinal("CreatedDate");
	        	
	    	OrdUpdatedDate = reader.GetOrdinal("UpdatedDate");
	        	
	    	OrdDiscountTypeName = reader.GetOrdinal("DiscountTypeName");
	        	
	    	OrdDiscountLimitName = reader.GetOrdinal("DiscountLimitName");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ViewDiscountPagingDto dTOParserViewDiscountPaging = new ViewDiscountPagingDto();
			
				
	    	if (!reader.IsDBNull(OrdSTT)) { dTOParserViewDiscountPaging.STT = reader.GetInt32(OrdSTT); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountId)) { dTOParserViewDiscountPaging.DiscountId = reader.GetInt32(OrdDiscountId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserViewDiscountPaging.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountTypeId)) { dTOParserViewDiscountPaging.DiscountTypeId = reader.GetInt32(OrdDiscountTypeId); }
	        	
	    	if (!reader.IsDBNull(OrdUsePercentage)) { dTOParserViewDiscountPaging.UsePercentage = reader.GetBoolean(OrdUsePercentage); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountPercentage)) { dTOParserViewDiscountPaging.DiscountPercentage = reader.GetDecimal(OrdDiscountPercentage); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountAmount)) { dTOParserViewDiscountPaging.DiscountAmount = reader.GetDecimal(OrdDiscountAmount); }
	        	
	    	if (!reader.IsDBNull(OrdStartDate)) { dTOParserViewDiscountPaging.StartDate = reader.GetDateTime(OrdStartDate); }
	        	
	    	if (!reader.IsDBNull(OrdEndDate)) { dTOParserViewDiscountPaging.EndDate = reader.GetDateTime(OrdEndDate); }
	        	
	    	if (!reader.IsDBNull(OrdRequiresCouponCode)) { dTOParserViewDiscountPaging.RequiresCouponCode = reader.GetBoolean(OrdRequiresCouponCode); }
	        	
	    	if (!reader.IsDBNull(OrdCouponCode)) { dTOParserViewDiscountPaging.CouponCode = reader.GetString(OrdCouponCode); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountLimitationId)) { dTOParserViewDiscountPaging.DiscountLimitationId = reader.GetInt32(OrdDiscountLimitationId); }
	        	
	    	if (!reader.IsDBNull(OrdLimitationTimes)) { dTOParserViewDiscountPaging.LimitationTimes = reader.GetInt32(OrdLimitationTimes); }
	        	
	    	if (!reader.IsDBNull(OrdCreatedDate)) { dTOParserViewDiscountPaging.CreatedDate = reader.GetDateTime(OrdCreatedDate); }
	        	
	    	if (!reader.IsDBNull(OrdUpdatedDate)) { dTOParserViewDiscountPaging.UpdatedDate = reader.GetDateTime(OrdUpdatedDate); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountTypeName)) { dTOParserViewDiscountPaging.DiscountTypeName = reader.GetString(OrdDiscountTypeName); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountLimitName)) { dTOParserViewDiscountPaging.DiscountLimitName = reader.GetString(OrdDiscountLimitName); }
	        			
			dTOParserViewDiscountPaging.IsNew = false;
			
			return dTOParserViewDiscountPaging;
		}
	}
	
		
    public class DTOParserViewGiftPaging : DTOParser
    {			
		
		public int OrdSTT;
		
		public int OrdGiftId;
		
		public int OrdName;
		
		public int OrdGiftTypeId;
		
		public int OrdRequiresCouponCode;
		
		public int OrdCouponCode;
		
		public int OrdDescription;
		
		public int OrdGiftLimitationId;
		
		public int OrdLimitationTimes;
		
		public int OrdStartDate;
		
		public int OrdEndDate;
		
		public int OrdGiftTypeName;
		
		public int OrdGiftLimitName;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdSTT = reader.GetOrdinal("STT");
	        	
	    	OrdGiftId = reader.GetOrdinal("GiftId");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdGiftTypeId = reader.GetOrdinal("GiftTypeId");
	        	
	    	OrdRequiresCouponCode = reader.GetOrdinal("RequiresCouponCode");
	        	
	    	OrdCouponCode = reader.GetOrdinal("CouponCode");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdGiftLimitationId = reader.GetOrdinal("GiftLimitationId");
	        	
	    	OrdLimitationTimes = reader.GetOrdinal("LimitationTimes");
	        	
	    	OrdStartDate = reader.GetOrdinal("StartDate");
	        	
	    	OrdEndDate = reader.GetOrdinal("EndDate");
	        	
	    	OrdGiftTypeName = reader.GetOrdinal("GiftTypeName");
	        	
	    	OrdGiftLimitName = reader.GetOrdinal("GiftLimitName");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ViewGiftPagingDto dTOParserViewGiftPaging = new ViewGiftPagingDto();
			
				
	    	if (!reader.IsDBNull(OrdSTT)) { dTOParserViewGiftPaging.STT = reader.GetInt32(OrdSTT); }
	        	
	    	if (!reader.IsDBNull(OrdGiftId)) { dTOParserViewGiftPaging.GiftId = reader.GetInt32(OrdGiftId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserViewGiftPaging.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdGiftTypeId)) { dTOParserViewGiftPaging.GiftTypeId = reader.GetInt32(OrdGiftTypeId); }
	        	
	    	if (!reader.IsDBNull(OrdRequiresCouponCode)) { dTOParserViewGiftPaging.RequiresCouponCode = reader.GetBoolean(OrdRequiresCouponCode); }
	        	
	    	if (!reader.IsDBNull(OrdCouponCode)) { dTOParserViewGiftPaging.CouponCode = reader.GetString(OrdCouponCode); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { dTOParserViewGiftPaging.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdGiftLimitationId)) { dTOParserViewGiftPaging.GiftLimitationId = reader.GetInt32(OrdGiftLimitationId); }
	        	
	    	if (!reader.IsDBNull(OrdLimitationTimes)) { dTOParserViewGiftPaging.LimitationTimes = reader.GetInt32(OrdLimitationTimes); }
	        	
	    	if (!reader.IsDBNull(OrdStartDate)) { dTOParserViewGiftPaging.StartDate = reader.GetDateTime(OrdStartDate); }
	        	
	    	if (!reader.IsDBNull(OrdEndDate)) { dTOParserViewGiftPaging.EndDate = reader.GetDateTime(OrdEndDate); }
	        	
	    	if (!reader.IsDBNull(OrdGiftTypeName)) { dTOParserViewGiftPaging.GiftTypeName = reader.GetString(OrdGiftTypeName); }
	        	
	    	if (!reader.IsDBNull(OrdGiftLimitName)) { dTOParserViewGiftPaging.GiftLimitName = reader.GetString(OrdGiftLimitName); }
	        			
			dTOParserViewGiftPaging.IsNew = false;
			
			return dTOParserViewGiftPaging;
		}
	}
	
		
    public class DTOParserViewPosition : DTOParser
    {			
		
		public int OrdPositionId;
		
		public int OrdPageId;
		
		public int OrdName;
		
		public int OrdPositionKey;
		
		public int OrdCreateDate;
		
		public int OrdOrder;
		
		public int OrdPageName;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdPositionId = reader.GetOrdinal("PositionId");
	        	
	    	OrdPageId = reader.GetOrdinal("PageId");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdPositionKey = reader.GetOrdinal("PositionKey");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdOrder = reader.GetOrdinal("Order");
	        	
	    	OrdPageName = reader.GetOrdinal("PageName");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ViewPositionDto dTOParserViewPosition = new ViewPositionDto();
			
				
	    	if (!reader.IsDBNull(OrdPositionId)) { dTOParserViewPosition.PositionId = reader.GetInt32(OrdPositionId); }
	        	
	    	if (!reader.IsDBNull(OrdPageId)) { dTOParserViewPosition.PageId = reader.GetInt32(OrdPageId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserViewPosition.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdPositionKey)) { dTOParserViewPosition.PositionKey = reader.GetString(OrdPositionKey); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { dTOParserViewPosition.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdOrder)) { dTOParserViewPosition.Order = reader.GetInt32(OrdOrder); }
	        	
	    	if (!reader.IsDBNull(OrdPageName)) { dTOParserViewPosition.PageName = reader.GetString(OrdPageName); }
	        			
			dTOParserViewPosition.IsNew = false;
			
			return dTOParserViewPosition;
		}
	}
	
		
    public class DTOParserViewProductCateTempMapping : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdTemplateId;
		
		public int OrdProductCateId;
		
		public int OrdIsOnHomePage;
		
		public int OrdDescription;
		
		public int OrdTempDescription;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdTemplateId = reader.GetOrdinal("TemplateId");
	        	
	    	OrdProductCateId = reader.GetOrdinal("ProductCateId");
	        	
	    	OrdIsOnHomePage = reader.GetOrdinal("IsOnHomePage");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdTempDescription = reader.GetOrdinal("TempDescription");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ViewProductCateTempMappingDto dTOParserViewProductCateTempMapping = new ViewProductCateTempMappingDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { dTOParserViewProductCateTempMapping.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdTemplateId)) { dTOParserViewProductCateTempMapping.TemplateId = reader.GetInt32(OrdTemplateId); }
	        	
	    	if (!reader.IsDBNull(OrdProductCateId)) { dTOParserViewProductCateTempMapping.ProductCateId = reader.GetString(OrdProductCateId); }
	        	
	    	if (!reader.IsDBNull(OrdIsOnHomePage)) { dTOParserViewProductCateTempMapping.IsOnHomePage = reader.GetBoolean(OrdIsOnHomePage); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { dTOParserViewProductCateTempMapping.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdTempDescription)) { dTOParserViewProductCateTempMapping.TempDescription = reader.GetString(OrdTempDescription); }
	        			
			dTOParserViewProductCateTempMapping.IsNew = false;
			
			return dTOParserViewProductCateTempMapping;
		}
	}
	
		
    public class DTOParserViewProductDetail : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdBarcode;
		
		public int OrdCategoryId;
		
		public int OrdName;
		
		public int OrdSummary;
		
		public int OrdDescription;
		
		public int OrdMetaDescription;
		
		public int OrdMetaKeyword;
		
		public int OrdCreateDate;
		
		public int OrdPrice;
		
		public int OrdQuantity;
		
		public int OrdProviderId;
		
		public int OrdMetaTitle;
		
		public int OrdProductStatus;
		
		public int OrdStockStatus;
		
		public int OrdShow;
		
		public int OrdCustomInfoFirst;
		
		public int OrdCustomInfoSecond;
		
		public int OrdCustomInfoThird;
		
		public int OrdTotalView;
		
		public int OrdProviderName;
		
		public int OrdProviderDescription;
		
		public int OrdProviderImagePath;
		
		public int OrdCategoryName;
		
		public int OrdImagePath;
		
		public int OrdUsePercentage;
		
		public int OrdDiscountPercentage;
		
		public int OrdDiscountAmount;
		
		public int OrdPromotionPrice;
		
		public int OrdGiftId;
		
		public int OrdDiscountInfo;
		
		public int OrdAverageRate;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdBarcode = reader.GetOrdinal("Barcode");
	        	
	    	OrdCategoryId = reader.GetOrdinal("CategoryId");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        	
	    	OrdSummary = reader.GetOrdinal("Summary");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdMetaDescription = reader.GetOrdinal("MetaDescription");
	        	
	    	OrdMetaKeyword = reader.GetOrdinal("MetaKeyword");
	        	
	    	OrdCreateDate = reader.GetOrdinal("CreateDate");
	        	
	    	OrdPrice = reader.GetOrdinal("Price");
	        	
	    	OrdQuantity = reader.GetOrdinal("Quantity");
	        	
	    	OrdProviderId = reader.GetOrdinal("ProviderId");
	        	
	    	OrdMetaTitle = reader.GetOrdinal("MetaTitle");
	        	
	    	OrdProductStatus = reader.GetOrdinal("ProductStatus");
	        	
	    	OrdStockStatus = reader.GetOrdinal("StockStatus");
	        	
	    	OrdShow = reader.GetOrdinal("Show");
	        	
	    	OrdCustomInfoFirst = reader.GetOrdinal("CustomInfoFirst");
	        	
	    	OrdCustomInfoSecond = reader.GetOrdinal("CustomInfoSecond");
	        	
	    	OrdCustomInfoThird = reader.GetOrdinal("CustomInfoThird");
	        	
	    	OrdTotalView = reader.GetOrdinal("TotalView");
	        	
	    	OrdProviderName = reader.GetOrdinal("ProviderName");
	        	
	    	OrdProviderDescription = reader.GetOrdinal("ProviderDescription");
	        	
	    	OrdProviderImagePath = reader.GetOrdinal("ProviderImagePath");
	        	
	    	OrdCategoryName = reader.GetOrdinal("CategoryName");
	        	
	    	OrdImagePath = reader.GetOrdinal("ImagePath");
	        	
	    	OrdUsePercentage = reader.GetOrdinal("UsePercentage");
	        	
	    	OrdDiscountPercentage = reader.GetOrdinal("DiscountPercentage");
	        	
	    	OrdDiscountAmount = reader.GetOrdinal("DiscountAmount");
	        	
	    	OrdPromotionPrice = reader.GetOrdinal("PromotionPrice");
	        	
	    	OrdGiftId = reader.GetOrdinal("GiftId");
	        	
	    	OrdDiscountInfo = reader.GetOrdinal("DiscountInfo");
	        	
	    	OrdAverageRate = reader.GetOrdinal("AverageRate");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ViewProductDetailDto dTOParserViewProductDetail = new ViewProductDetailDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { dTOParserViewProductDetail.Id = reader.GetString(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdBarcode)) { dTOParserViewProductDetail.Barcode = reader.GetString(OrdBarcode); }
	        	
	    	if (!reader.IsDBNull(OrdCategoryId)) { dTOParserViewProductDetail.CategoryId = reader.GetString(OrdCategoryId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserViewProductDetail.Name = reader.GetString(OrdName); }
	        	
	    	if (!reader.IsDBNull(OrdSummary)) { dTOParserViewProductDetail.Summary = reader.GetString(OrdSummary); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { dTOParserViewProductDetail.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdMetaDescription)) { dTOParserViewProductDetail.MetaDescription = reader.GetString(OrdMetaDescription); }
	        	
	    	if (!reader.IsDBNull(OrdMetaKeyword)) { dTOParserViewProductDetail.MetaKeyword = reader.GetString(OrdMetaKeyword); }
	        	
	    	if (!reader.IsDBNull(OrdCreateDate)) { dTOParserViewProductDetail.CreateDate = reader.GetDateTime(OrdCreateDate); }
	        	
	    	if (!reader.IsDBNull(OrdPrice)) { dTOParserViewProductDetail.Price = reader.GetDecimal(OrdPrice); }
	        	
	    	if (!reader.IsDBNull(OrdQuantity)) { dTOParserViewProductDetail.Quantity = reader.GetInt32(OrdQuantity); }
	        	
	    	if (!reader.IsDBNull(OrdProviderId)) { dTOParserViewProductDetail.ProviderId = reader.GetInt32(OrdProviderId); }
	        	
	    	if (!reader.IsDBNull(OrdMetaTitle)) { dTOParserViewProductDetail.MetaTitle = reader.GetString(OrdMetaTitle); }
	        	
	    	if (!reader.IsDBNull(OrdProductStatus)) { dTOParserViewProductDetail.ProductStatus = reader.GetString(OrdProductStatus); }
	        	
	    	if (!reader.IsDBNull(OrdStockStatus)) { dTOParserViewProductDetail.StockStatus = reader.GetBoolean(OrdStockStatus); }
	        	
	    	if (!reader.IsDBNull(OrdShow)) { dTOParserViewProductDetail.Show = reader.GetBoolean(OrdShow); }
	        	
	    	if (!reader.IsDBNull(OrdCustomInfoFirst)) { dTOParserViewProductDetail.CustomInfoFirst = reader.GetString(OrdCustomInfoFirst); }
	        	
	    	if (!reader.IsDBNull(OrdCustomInfoSecond)) { dTOParserViewProductDetail.CustomInfoSecond = reader.GetString(OrdCustomInfoSecond); }
	        	
	    	if (!reader.IsDBNull(OrdCustomInfoThird)) { dTOParserViewProductDetail.CustomInfoThird = reader.GetString(OrdCustomInfoThird); }
	        	
	    	if (!reader.IsDBNull(OrdTotalView)) { dTOParserViewProductDetail.TotalView = reader.GetInt32(OrdTotalView); }
	        	
	    	if (!reader.IsDBNull(OrdProviderName)) { dTOParserViewProductDetail.ProviderName = reader.GetString(OrdProviderName); }
	        	
	    	if (!reader.IsDBNull(OrdProviderDescription)) { dTOParserViewProductDetail.ProviderDescription = reader.GetString(OrdProviderDescription); }
	        	
	    	if (!reader.IsDBNull(OrdProviderImagePath)) { dTOParserViewProductDetail.ProviderImagePath = reader.GetString(OrdProviderImagePath); }
	        	
	    	if (!reader.IsDBNull(OrdCategoryName)) { dTOParserViewProductDetail.CategoryName = reader.GetString(OrdCategoryName); }
	        	
	    	if (!reader.IsDBNull(OrdImagePath)) { dTOParserViewProductDetail.ImagePath = reader.GetString(OrdImagePath); }
	        	
	    	if (!reader.IsDBNull(OrdUsePercentage)) { dTOParserViewProductDetail.UsePercentage = reader.GetBoolean(OrdUsePercentage); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountPercentage)) { dTOParserViewProductDetail.DiscountPercentage = reader.GetDecimal(OrdDiscountPercentage); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountAmount)) { dTOParserViewProductDetail.DiscountAmount = reader.GetDecimal(OrdDiscountAmount); }
	        	
	    	if (!reader.IsDBNull(OrdPromotionPrice)) { dTOParserViewProductDetail.PromotionPrice = reader.GetDecimal(OrdPromotionPrice); }
	        	
	    	if (!reader.IsDBNull(OrdGiftId)) { dTOParserViewProductDetail.GiftId = reader.GetInt32(OrdGiftId); }
	        	
	    	if (!reader.IsDBNull(OrdDiscountInfo)) { dTOParserViewProductDetail.DiscountInfo = reader.GetString(OrdDiscountInfo); }
	        	
	    	if (!reader.IsDBNull(OrdAverageRate)) { dTOParserViewProductDetail.AverageRate = reader.GetDouble(OrdAverageRate); }
	        			
			dTOParserViewProductDetail.IsNew = false;
			
			return dTOParserViewProductDetail;
		}
	}
	
		
    public class DTOParserViewProductTagList : DTOParser
    {			
		
		public int OrdSTT;
		
		public int OrdId;
		
		public int OrdName;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdSTT = reader.GetOrdinal("STT");
	        	
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdName = reader.GetOrdinal("Name");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ViewProductTagListDto dTOParserViewProductTagList = new ViewProductTagListDto();
			
				
	    	if (!reader.IsDBNull(OrdSTT)) { dTOParserViewProductTagList.STT = reader.GetInt32(OrdSTT); }
	        	
	    	if (!reader.IsDBNull(OrdId)) { dTOParserViewProductTagList.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdName)) { dTOParserViewProductTagList.Name = reader.GetString(OrdName); }
	        			
			dTOParserViewProductTagList.IsNew = false;
			
			return dTOParserViewProductTagList;
		}
	}
	
		
    public class DTOParserViewSubCategoryTempJoin : DTOParser
    {			
		
		public int OrdId;
		
		public int OrdProductCateTempMappingId;
		
		public int OrdCateTempDescription;
		
		public int OrdDescription;
		
		public int OrdTempContent;
		
		public int OrdDisplayOrder;
			
		public override void PopulateOrdinals(SqlDataReader reader)
		{
				
	    	OrdId = reader.GetOrdinal("Id");
	        	
	    	OrdProductCateTempMappingId = reader.GetOrdinal("ProductCateTempMappingId");
	        	
	    	OrdCateTempDescription = reader.GetOrdinal("CateTempDescription");
	        	
	    	OrdDescription = reader.GetOrdinal("Description");
	        	
	    	OrdTempContent = reader.GetOrdinal("TempContent");
	        	
	    	OrdDisplayOrder = reader.GetOrdinal("DisplayOrder");
	        		}
		
		public override DTOBase PopulateDTO(SqlDataReader reader)
	    {
					
			ViewSubCategoryTempJoinDto dTOParserViewSubCategoryTempJoin = new ViewSubCategoryTempJoinDto();
			
				
	    	if (!reader.IsDBNull(OrdId)) { dTOParserViewSubCategoryTempJoin.Id = reader.GetInt32(OrdId); }
	        	
	    	if (!reader.IsDBNull(OrdProductCateTempMappingId)) { dTOParserViewSubCategoryTempJoin.ProductCateTempMappingId = reader.GetInt32(OrdProductCateTempMappingId); }
	        	
	    	if (!reader.IsDBNull(OrdCateTempDescription)) { dTOParserViewSubCategoryTempJoin.CateTempDescription = reader.GetString(OrdCateTempDescription); }
	        	
	    	if (!reader.IsDBNull(OrdDescription)) { dTOParserViewSubCategoryTempJoin.Description = reader.GetString(OrdDescription); }
	        	
	    	if (!reader.IsDBNull(OrdTempContent)) { dTOParserViewSubCategoryTempJoin.TempContent = reader.GetString(OrdTempContent); }
	        	
	    	if (!reader.IsDBNull(OrdDisplayOrder)) { dTOParserViewSubCategoryTempJoin.DisplayOrder = reader.GetInt32(OrdDisplayOrder); }
	        			
			dTOParserViewSubCategoryTempJoin.IsNew = false;
			
			return dTOParserViewSubCategoryTempJoin;
		}
	}
	
}

